Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when using ${filename} #1

Open
jontelm opened this issue Jan 25, 2015 · 1 comment
Open

Bug when using ${filename} #1

jontelm opened this issue Jan 25, 2015 · 1 comment

Comments

@jontelm
Copy link

jontelm commented Jan 25, 2015

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

@mpneuried
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants