Skip to content

Tag: vuejs2

Chunk file upload with axios

I encountered a problem and was hopeing someone could help me. I need to realize file chunk upload with axios, and I need to send the chunks to my server one after the other. So new axios request should happen after the previous one is completed. Now, requests are not sent in order. my code is below: Answer U…

How to get File type object from url (image) in vuejs

I do have an image url lets say http://localhost/sample.jpg. i want to save this image url into a File object type as my component created. how can i achieve this with native js api? Answer One of the simple ways to do this is using fetch. After you have blob you can convert it to file. See How to convert