Questions tagged [sails-skipper]
27 questions
2
votes
1 answer
I want to upload files from different file inputs in SailsJS
await sails.upload(inputs.logo);
await sails.upload(inputs.thumbnail);
I use sails-hook-uploads. Only the first incoming file (logo, in my case) is uploaded and for thumbnail, it shows this message.
Upstream (file upload: thumbnail) emitted an…

meowfitchoo
- 44
- 3
2
votes
1 answer
Sails JS file upload; how to check if file is an input?
I am using Sails JS v11.05.
The file upload is NOT a required field.
How do I check if the file was uploaded or not?
Usually, I use
if (!req.param('param')) {
// param does NOT exist - was not uploaded
// This does not apply to file input…

Nizar Blond
- 1,826
- 5
- 20
- 42
2
votes
1 answer
Alternative of sails-skipper for upload?
I have a big issue with sails-skipper.
Sometimes it work fine, but mostly when i post the file(with meta fields) then it flushes out body. console.log(req.body) prints{}.
I have posted this issue here #138.
Is there any other library which works…

Nishchit
- 18,284
- 12
- 54
- 81
1
vote
1 answer
multi file upload with skipper-better-s3 and sailjs returns the same key
As seen in the title, I am currently using sailjs + skipper-better-s3 for s3 upload. Started with uploading one file which works great, then because change request the need of multi-file upload at once so I added a for loop but by doing this, all…

Dora
- 6,776
- 14
- 51
- 99
1
vote
1 answer
Sailsjs skipper-gridfs not working after upgrade to node v14
Library skipper-gridfs stopped working properly after upgrade node from v12 to v14. Is someone experiencing the same issue?.
Uploading files seems it works, even whenDone() is triggered and a file descriptor been created but when I need to retrieve…

Jordi
- 331
- 2
- 15
1
vote
1 answer
Optional file uploads with Sails.js
Is it possible to have a Sails action accept an optional file upload without spitting out the following stacktrace a few seconds after the request?
Upstream (file upload: `image`) emitted an error: { Error: EMAXBUFFER: An upstream (`NOOP_image`)…

nahanil
- 522
- 3
- 9
1
vote
0 answers
skipper gridfs image upload
I'm having a problem in sails js image uploading using skipper gridfs.
My connection is fine but however when I upload an image it logs an error to my terminal
MongoError: error processing query: ns=admin.uploads.chunksTree: $and
files_id $eq…

Abdul-Elah JS
- 685
- 1
- 16
- 36
1
vote
1 answer
Uploading files to Sails.js server using FormData
I'm using react-dropzone to upload multiple files to a Sails.js server. Since react-dropzone gives me the list of dropped files, I'm appending them to a FormData object. With this, when the request hits the server, the req.file('myfile').upload()…

Matheus Dal'Pizzol
- 5,735
- 3
- 19
- 29
1
vote
1 answer
Is there any way to make Skipper work with socket.io?
My problem is as simple as annoying. I'm developing a Sailsjs app, and I would just like to use socket.io to upload a file.
I usually make use of Skipper which is the recommended Sails' upload handler, but the req.file() object stay undefined…

Cart3sianBear
- 21
- 2
1
vote
1 answer
Sails Body Parser Configuration
I have an application hosted on Heroku that sends a huge amount of JSON. I originally was getting a bodyParser - request entity too large error (HTTP 400). Googling around, I came across a few stackoverflow/github issue links
(Sails.js bodyParser…

danieltjewett
- 82
- 10
1
vote
3 answers
How can I delete a file in AWS S3 with Sails? To upload, I use skipper-s3
I just made an upload file to AWS S3 with sails and skipper-3 and it work well. Now, how can I delete a file in AWS S3 with Sails?
When I upload the file I store in the Database the URL to AWS S3.

Juan José González
- 23
- 5
0
votes
1 answer
Sailsjs file upload get stuck when using PM2 and node > 12
I'm facing a weird behaviour, and I don't know where to look anymore.
Here is the bug :
When I upload a file, it starts then stops after 2 or 3 "progress" events. Then nothings happened, it just hang there forever.
The file is written on the disk,…

Francois
- 93
- 1
- 15
0
votes
0 answers
Error while uploading Multiple Files with different File Names With Skipper in Sails Js
I am trying to upload multiple type of files to S3 in sails js
Files are as Follow : VehicleImages, VehicleVideos, VehicleDocuments
I am passing these three type of files with attribute name with same name as these files to my server via…

Muhammad Talha
- 55
- 1
- 7
0
votes
0 answers
Problem with upload file in expo react native
Hi i tried to upload file with expo:
the console.log give me this error "Streaming file uploads via req.file() are only available over HTTP with Skipper" but when i tried it with postman it's workd.I use sailsJs for my back-end
this is my code for…

F4M75
- 21
- 5
0
votes
1 answer
Sails app crash when not calling skipper upload
If I call req.file('files') and not calling updload (for example because I throw validation error) the app crashes.
const files = req.file('files')
if (!files || files.length === 0) {
throw "MISSING_ARGUMENTS"; // intentally fails…

Kreator
- 59
- 1
- 11