aws-s3-form icon indicating copy to clipboard operation
aws-s3-form copied to clipboard

Bug when using ${filename}

Open jontelm opened this issue 10 years ago • 1 comments

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".

jontelm avatar Jan 25 '15 00:01 jontelm

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?

mpneuried avatar Jan 26 '15 09:01 mpneuried