flowjs / flow.js

A JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.
Other
2.96k stars 346 forks source link

server can't recieve anything about flow* parameters #189

Open imliuda opened 8 years ago

imliuda commented 8 years ago

i am using flask, i print all the information about the request. below is the server side information: Referer: http://localhost:5000/me/media Host: localhost:5000 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x8664; rv:49.0) Gecko/20100101 Firefox/49.0 Accept-Language: en-US,en;q=0.5 Content-Type: multipart/form-data; boundary=---------------------------1573194427290947298391879306 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8 Accept-Encoding: gzip, deflate Content-Length: 1755368 Cookie: session=eyJhdXRoX3Rva2VuIjoiZSpIRSVxRS1BdndoTSpaR0tMajJSMXQqRHYxSSZKb1BYI045eSRYT1p3QFI3S2NaZlVFTj1lKEZyLWRtNHhYVSIsInVzZXJuYW1lIjoiZGRkZCJ9.CsmTuA.YRLVzUR9eKJrhBZNRwecKjqS-rg

Content-Disposition: form-data; name="file"; filename="VID_20160926_001547.mp4" Content-Type: video/mp4

and below is the chunked headers in flask's FileStorage.files.headers. Content-Disposition: form-data; name="file"; filename="VID_20160926_001547.mp4" Content-Type: video/mp4

also, i confirmed that what server recieved is exactly same with browser send using firefox develop tools.

so, i just want to kwow is that if i was doing things wrong, or something else.

command-tab commented 8 years ago

The uploaded file data is in request.files but I believe the flow metadata you're looking for is in request.form

imliuda commented 8 years ago

thanks, i am new to flask and web development, it does in the request.form. I have finished the server side of flask. flow.js is very pretty library for file upload, i like it!