Note that there are some explanatory texts on larger screens.

plurals
  1. POConnect 1.8.0 - multipart support - formidable reporting progress - large files?
    text
    copied!<p>I've come across TJ Holowaychuk post on multipart support and how bodyParser now does what I used to to with formidable directly.I think it's quite handy, at the same time I am now confused on how to deal with: - uploading large files? Does connect-form handle everything that is needed to support uploading of files that are for example 100MB in size? - report progress during upload? I used to get the form.parse(..) event called before the change, now since it's all handled by bodyParser it's never called...</p> <p>Holowaychuk says that "The downside to this is that if you wish to report upload progress, or access files and fields as the request is streamed, you will have to use formidable directly" (http://tjholowaychuk.com/). I tried to use it directly. The only way it worked for me was to put:</p> <p>... app.use(app.router); before:</p> <p>app.use(express.bodyParser());</p> <p>So I thought that solved my problem until I wanted to use sessions which didn't work because router has to be put before bodyparser to make the upload work and: app.use(express.cookieParser()); app.use(express.session({...}) has to go after: app.use(express.bodyParser()); which throws off sessions....</p> <p>So:</p> <p>WHAT IS THE RIGHT WAY OF HANDLING/CONFIGURING FILE UPLOADS so that reporting progress works and sessions work all together, small and large files using this new way with connect-form?</p> <p>I'm not super experienced with Node and express so if you do answer please keep that in mind if possible.</p> <p>Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload