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

Add ResumableFileObject to target-callback #552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobias74
Copy link
Contributor

@tobias74 tobias74 commented Feb 3, 2020

I needed this functionality because I had to re-calculate the target-url for each file based on information I added to the ResumableFile-Object in the "fileAdded"-Hook.

Basically the information is only available when the user adds the file to the queue. This information is not available at the time of the actual uploading.

Therefore I add this piece of information to the ResumableFileObject when the "fileAdded"-Hook fires. Later, when the target-callback is executed, I retrieve it from the ResumableFileObject.

I needed this functionality because I had to re-calculate the target-url for each file based on information I added to the ResumableFile-Object in the "fileAdded"-Hook.

Basically the information is only available when the user adds the file to the queue. This information is not available at the time of the actual uploading. 

Therefore I add this piece of information to the ResumableFileObject when the "fileAdded"-Hook fires. Later, when the target-callback is executed, I retrieve it from the ResumableFileObject.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant