aws-s3-form
aws-s3-form copied to clipboard
Bug when using ${filename}
Hi, Nice lib, good job!
"The key name of the uploaded object. To use the file name provided by the user, use the ${filename} variable. For example, if a user User1 uploads a file photo1.jpg and you specify /user/user1/${filename}, the file is stored as /user/user1/photo1.jpg."
When using ${filename} in the filename input I get an error with the "success_action_redirect", not a big deal. Works when comment out "filename" in "success_action_redirect".
Hi, this is not really a bug ;-)
I tried to reproduce your case.
The point is that you have to change the redirect url. This can be done by setting the redirectUrlTemplate
option.
Because i see this is a typical use case i added a section "Use Cases" to the readme and extended the example server to handle ${filename}
.
Please let me know if this fixes your issue?