vue-media-upload icon indicating copy to clipboard operation
vue-media-upload copied to clipboard

My server requires authentication for server API call but how to send that data?

Open Jayesh-Mahato opened this issue 1 year ago • 2 comments

My server requires authentication for server API call but how to send authentication tokens when the component only has server (server="/api/upload") props as a single url for call?

Jayesh-Mahato avatar Feb 23 '24 16:02 Jayesh-Mahato

Make sure you are using the latest release (v2.2.3 for now). and use the headers prop to pass the token to the server.

{"Authorization": "Bearer ACCESS_TOKEN"}

saimow avatar Feb 24 '24 14:02 saimow

How to Skip upload to /api/server

toannguyen1412 avatar Apr 06 '24 08:04 toannguyen1412