q-uploader
-
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