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

finished in UploadServer.init not working correctly #239

Open
janus-reith opened this issue Jun 23, 2016 · 0 comments
Open

finished in UploadServer.init not working correctly #239

janus-reith opened this issue Jun 23, 2016 · 0 comments

Comments

@janus-reith
Copy link

It seems like the finished method is performed before the file is uploaded?
Example:
finished: function(fileInfo, formFields) {
console.log(Assets.getText(fileInfo.name));
}

This results in 100% of Failed: Unexpected error. 503 Service Unavailable
Console outputs: Error: Unknown asset: test.json

After the server restarts, and the file is in the upload dir already(I set overwrite: true),
the same thing works fine without errors.

Did I misunderstand the purpose of the finished-parameter?
An action that is performed after the file has been uploaded.

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

No branches or pull requests

1 participant