You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Correctly handle multipart/form-data rather than application/octet-stream #19
i attempted to implement this correctly by handling a Content-Type: multipart/form-data MIMETYPE as specified by RFC 2388 and implemented in requests and flask
after two hours I gave up because the werkzeug.Request.files and werkzeug.Request.form attributes were always empty, similar but not identical to the following github issues:
changed the title [-]accept metadata on POST /index[/-][+]Correctly handle `multipart/form-data` rather than `application/octet-stream`[/+]on Sep 2, 2019
Activity
DavidGarfinkle commentedon Aug 22, 2019
add author and piece name
DavidGarfinkle commentedon Sep 2, 2019
i attempted to implement this correctly by handling a
Content-Type: multipart/form-dataMIMETYPE as specified by RFC 2388 and implemented in requests and flaskafter two hours I gave up because the
werkzeug.Request.filesandwerkzeug.Request.formattributes were always empty, similar but not identical to the following github issues:Instead, I implemented this by handling ONLY mimetype
application/octet-stream(binary data) and requiring the following binary payload:90dc2e88fb6b4777432355a4bc7348fd17872e78905a7ec6626fe7b0f10a2e5amusic21[-]accept metadata on POST /index[/-][+]Correctly handle `multipart/form-data` rather than `application/octet-stream`[/+]