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

    q-uploader

    Help
    1
    1
    167
    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.
    • stukki
      stukki last edited by

      Hi folks,
      I’m quite new to quasar. Everything in my application works really good and as expected. Only the q-uploader gives me some headache:

      I try to configure the uploader. I must change:
      from:

      Content-Disposition: form-data; name="avatar5.jpg"; filename="avatar5.jpg"
      Content-Type: image/jpeg
      

      to:

      Content-Disposition: form-data; file="avatar5.jpg"; filename="avatar5.jpg"
      Content-Type: image/jpeg
      
      

      I’ve already tried by using a factory function, but it does not change as expected:

        methods: {
          factoryFn (file) {
            return {
              url: 'http://{domain}:port/user/image',
              method: 'POST',
              fields: { name: 'file', value: file.name },
              headers: [
                { name: 'Content-Type', value: 'multipart/form-data' },
                { name: 'authorization', value: SessionStorage.getItem('auth') }
              ]
            }
          }
        }
      

      I’m using:

      Dev mode.......... spa
          Pkg quasar........ v1.0.0-beta.14
          Pkg @quasar/app... v1.0.0-beta.15
      
      

      Has anyone an idea?
      Many thanks in advance

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