React Native - Upload Multiple Image Files in a Single Call - javascript

I am referring to this post on react native image upload to server: How to upload Image on server using ReactNative
Other than workaround of calling fetch multiple times for multiple image files upload (looping through the files), I was wondering how to upload multiple of image files by just calling fetch once? Could someone provide a simple example?
Thanks in advance!

Related

Download attached file

Is there a way to download files attached using Paperclip without using libraries?
My goal is to allow the user to download the file as soon as the file is uploaded and before it is sent to the backend.
I found the way to make it working with file-saver
However, I was wondering if that can be done without the library?
You can use the js-file-download package.
https://www.npmjs.com/package/js-file-download

JavaScript API Drive Uploader - Upload file manually using JS

I am using drive uploader component (https://driveuploader.com/) in my application to upload files on GoogleDrive. It is workign fine as long as the user selects file using the component. Now the new requirement needs me to upload the file manually using JavaScript. I will be given bytes array and then I need to convert that bytes array to file and then upload it to google drive using driveuploader and the further process goes on as is, but I am not able to come up with the idea how to do it. Any pointer in this regard are appreciated.
Thanks.

Rails 4: How to upload a javascript Blob?

I'm building a Rails app that uses client-side javascript to edit an image and produce a Blob containing the data for the newly created image. I'm using the Paperclip gem to manage storing images on the server-side. I know how to upload images using Rails and Paperclip via traditional forms. But how do I upload this Blob? I would prefer an AJAX solution.

Multiple file uploading using javascript, jquery plugins

I'm developing a website in which i have to upload files to the server. There are many file upload controls out there but none of them has served my purpose, that is I want to upload lets say 1000 files but I want to do it in chunks of 200 files so that server calls are minimum. In the above explained scenario 5 calls would be made to the server. I have look into the Plupload and Dropzone each of them make a separate call to the server i.e. 10 files 10 server calls. Is there any file upload control that serves this purpose or any option in the above mentioned controls that I can make use of?
look into Fineuploader, and perhaps use Amazon S3 as a server-side solution
http://fineuploader.com/

jquery fetch images from url and provide as zip file

I have the URLs of a list of images. Now on click of a link, ineed to to zip the images in all those URL's and provide it as a downloadable file. What i have currently done is,
Pass the URLs to django views
Fetch the images and store it to filesystem
Zip them and
Return a download dialog as response
Now, i am thinking of doing everything at the client side itself.I came across the JS plugin Zip.js that can zip files. My only problem is how to fetch those images from the URL's and zip them in memory using JS.Any help is appreciated.I also came across other plugins to zip files,
http://www.jquery4u.com/javascript/javascriptjquery-zipfilecompressor-plugins/#.UE8cI2AxznA
https://raw.github.com/Stuk/jszip/master/jszip.js
As #VisioN said, the zip.js plugin or any other plugins fails some browser tests, the only way to do this will be on the server side.

Categories

Resources