No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    large file upload, <q-uploader/>

    Help
    1
    1
    540
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sidiclei last edited by

      Hi, I’m working on an application with a quasar app, but when I create a file upload with the component I can not send the files in small parts …

      Look at the code …

      <template>
        <q-uploader
          multiple
          auto-expand
          :headers="{'content-type': 'multipart/form-data'}"
          url=""
          :upload-factory="uploadFile"
        />
      </template>
      
      <script>
      import { mapActions } from 'vuex'
      
      export default {
        name: 'Uploader',
        methods: {
          uploadFile (file, updateProgress) {
            // "file" is an Object containing file's props, including content
      
            // for updating progress (as 0-1 floating number), we need to call:
            // updateProgress (bytesTransferred / totalBytes)
      
            this.uploadFilesSend({'file': file, 'type': file.type}).then(console.log('upload ok'))
      
            // we need to return a Promise
            // (resolves when upload is done, rejects when there's an error)
          },
          ...mapActions('uploads', {
            uploadFilesSend: 'create'
          })
        }
      }
      </script>
      

      I am using feathersjs as a server with connection socket.io, the server complains that when I send a big file the timeout, to even increase that team more I verified that it is trying to send only as a whole file and not in parts …

      I would like to know if you have and how to enable this multipart / form-data method …

      Grateful

      1 Reply Last reply Reply Quote 0
      • First post
        Last post