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 }}
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
It would be extremely nice to also have access to the uploaded file's filename in the callback so that it's extension could be used to generate a custom filename.
The API has a getName(id) method that could be used for this, except there is no uploader context in the objectProperties.key callback. You have to rely on a global var to use the API, which doesn't play nicely with multiple uploaders on a page.
So, I think the uploader instance should be provided as an argument to a custom callback on objectProperties.key.
The text was updated successfully, but these errors were encountered:
I don't plan on passing a filename or an uploader instance as additional params. The best solution here would be to ensure the context of the call to key function matches the context of the callbacks when they are invoked. We'll consider this for the release after the current one (4.3) most likely.
This is a feature request.
Right now, the only argument passed to a custom objectProperties.key callback is
id
. (https://github.com/Widen/fine-uploader/blob/4.1.0/client/js/s3/uploader.basic.js#L209)It would be extremely nice to also have access to the uploaded file's
filename
in the callback so that it's extension could be used to generate a custom filename.The API has a
getName(id)
method that could be used for this, except there is no uploader context in the objectProperties.key callback. You have to rely on a global var to use the API, which doesn't play nicely with multiple uploaders on a page.So, I think the uploader instance should be provided as an argument to a custom callback on objectProperties.key.
The text was updated successfully, but these errors were encountered: