Batch upload requests to Google Cloud Storage using javascript
I'm trying to upload multiple images to google cloud storage in a batch request using javascript. I'm using https://developers.google.com/storage/docs/json_api/v1/how-tos/batch#example as reference. I have an input file where the user can select multiple files, and an 'upload' btn to upload to GCS like so: <input type="file" name="fileName" id="fileInput" multiple="multiple" onchange="javascript: loadFiles()"/> <input type="button" name="upload-btn" id="upload" value="Upload"/> When the user selects the images, the 'loadFiles' function creates the 'body' of the batch request. var tok = <token>