Questions tagged [skipper]

Skipper is a visualization tool and code/schema generator for PHP ORM frameworks

Skipper is a visualization tool and code/schema generator for PHP ORM frameworks

https://en.wikipedia.org/wiki/Skipper_(computer_software)

59 questions
10
votes
1 answer

How can I validate file type before upload use SailsJS Skipper

As the title, now I can not check file type before upload. I only verify and don't allow save data after file uploaded successfully. Below is a basic code updateAvatar : function(data, context, req, res) { req.file('avatar').upload({ …
Thanh Dao
  • 1,218
  • 2
  • 16
  • 43
9
votes
2 answers

Skipper in SailsJS (beta) image resize before upload

I'm using SailsJS (beta). I'm trying to find a way to use graphicsmagick to take the stream parsed by Skipper in SailsJS-beta to resize the image before calling the Skipper-function req.file('inputName').upload(). My goal is to take my large,…
hansmei
  • 660
  • 7
  • 17
7
votes
2 answers

how to change skipper maxTimeToBuffer attribute

I am using skipper and skipper-azure to upload multiple files at a time, if I upload small number of files lets say 20 to 30 at a time every thing works fine but if I upload more files like 200 or 300 I start receiving the following error for some…
Naveed Ahmad
  • 314
  • 6
  • 18
7
votes
2 answers

Sails.js File upload with Skipper to AWS S3

I have a form where you can upload a file. I upload the file directly with skipper and it works perfectly. req.file('file').upload({ adapter: require('skipper-s3'), key: 'key', secret: 'secret', bucket: 'bucketname' }, function (err,…
singuerinc
  • 447
  • 4
  • 14
7
votes
1 answer

Handling uploads with skipper in sails.js (on progress)

I am using skipper to upload multiple files at once to a local folder. But I ran into few problems. upload: function (req, res) { if (_.isEmpty(req.session.User)){ return res.json({ //---> 1 …
pewpewlasers
  • 3,025
  • 4
  • 31
  • 58
7
votes
1 answer

Sails.JS File uploads using skipper, accessing original file name and dynamic upload path

I want to upload a simple file using skipper. Earlier, files uploaded via forms could be accessed using req.files but got to know that in Sails 0.10.x, with skipper installed by default, req.files is undefined. Instead of that req.file('filename')…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
6
votes
3 answers

Uploading multiple files with Sails.js 0.10 and Skipper using Dropzone.js

I have an issue with multiple file upload in my sails app. I am trying to implement multiple file upload with Dropzone.js and my backend is Sails v0.10.0-rc8. Now when I upload some files via dropzone, I see that in case of multiple upload it sends…
ArVan
  • 4,225
  • 8
  • 36
  • 58
5
votes
2 answers

Aborted upload causes Sails js/Skipper to crash

Ref: https://github.com/balderdashy/skipper/issues/49 Adapter: skipper-gridfs Basic controller code: req.file('fileTest') .upload({ // You can apply a file upload limit (in bytes) maxBytes: maxUpload, adapter:…
noderman
  • 1,934
  • 1
  • 20
  • 36
4
votes
1 answer

Partial POSTED Data in sails.js (From time to time)

I have a production server(ubuntu), where a user fills and sends a form (multipart), to either create or update a record. Now sometimes when I try to use req.allParams() I get an object with incomplete data. Lets say this is what I usually…
Lu Roman
  • 2,220
  • 3
  • 25
  • 40
4
votes
0 answers

Sails.js file upload returns empty files array when large file is uploaded in multi-upload form

I have multipart form in my Sails.js project which submits 2 different files (first audio then image) along with some text params. In most cases with rather small files, everything works fine. But when I tried a bigger audio file (33MB) I got empty…
ArVan
  • 4,225
  • 8
  • 36
  • 58
4
votes
1 answer

Sails js: How to check number of files passed through req.file method for a single param

I have a controller in sails js which takes care of uploading images to s3. Everything works fine and image is uploaded to s3 assuming that only one file was sent for the param "image" (which I can access through req.file('image')). I want to know,…
Utkarsh51
  • 63
  • 3
4
votes
1 answer

Sails.js Skipper: How to read the uploaded file stream during upload?

I am using sails version 0.11 which comes bundled with skipper for file uploads. I need to upload big files of over 100 MB in size at least. Now I don't want the file upload to complete before I start further processing of the file on server. I…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
4
votes
1 answer

Sails.js file upload - destroying req.body and .upload() callback executing before upload is actually complete

I am building a website using Sails, a page of which contains a form. This form has multiple text inputs, and a file upload input for the user to upload an image. The information from all text inputs are stored in a Postgres database, and the image…
4
votes
1 answer

Sails crashes on file upload aborted with skipper

I'm using skipper with skipper-s3 adapter to handle file uploads in my sails application. It works fine when the file is sent normally, yet when the request is aborted I got an unhandled error message and sails crashes. events.js:85 throw er; //…
adc06
  • 793
  • 8
  • 23
4
votes
2 answers

Sails.js bodyParser - request entity too large on version 0.10.5

I am trying to post a lot of data to my sails API and I get this 413 error: Unable to parse HTTP body- error occurred - Error: request entity too large I have tried a lot of solutions suggested in differents discussions but it never works and seems…
sheoak
  • 91
  • 1
  • 6
1
2 3 4