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
This issue submission follows a conversation with Fokke.
Your "creates/upload.js" shows use of Form-Data and request to upload a file presented to a create by a trigger. However, I have seen Form-Data is not receiving the filename from the Content-Disposition line. I have had to set filename manually (providing a placeholder) using the Alternate Submission Methods and submitted PR #7 relating to this.
Form-Data says that it "can recognize and fetch all the required information from common types of streams (fs.readStream, http.response and mikeal's request)". This suggests that the filename is not getting to request and/or Form-Data correctly. (Perhaps the issue is in stashing and/or dehydration - though I admit I am not super familiar with the impact of those.) Fokke and I have both observed Form-Data using the value from path in this method
Thank you for your attention to this.
The text was updated successfully, but these errors were encountered:
FokkeZB
changed the title
Uploading file to form-data should provide filename with Content-Disposition
When you pass on a file (URL) using form-data it doesn't use the Content-Disposition filename
Oct 23, 2017
Form-Data can recognize and fetch all the required information from common types of streams (fs.readStream, http.response and mikeal's request), for some other types of streams you'd need to provide "file"-related information manually:
This example uses request but @mkassonfound that when you follow the example the multipart body generated by form-data does not use the filename from the file URL, while we do send the filename as part of the Content-Disposition.
xavdid
transferred this issue from zapier/zapier-platform-example-app-files
Jun 25, 2019
Given that it has been some time since this issue was created and it may be stale, I am going to go ahead and close it. Please feel free to open a new issue if necessary!
This issue submission follows a conversation with Fokke.
Your "creates/upload.js" shows use of Form-Data and request to upload a file presented to a create by a trigger. However, I have seen Form-Data is not receiving the filename from the Content-Disposition line. I have had to set filename manually (providing a placeholder) using the Alternate Submission Methods and submitted PR #7 relating to this.
Form-Data says that it "can recognize and fetch all the required information from common types of streams (fs.readStream, http.response and mikeal's request)". This suggests that the filename is not getting to request and/or Form-Data correctly. (Perhaps the issue is in stashing and/or dehydration - though I admit I am not super familiar with the impact of those.) Fokke and I have both observed Form-Data using the value from path in this method
Thank you for your attention to this.
The text was updated successfully, but these errors were encountered: