tomitrescak / meteor-uploads

MIT License
295 stars 41 forks source link

finished in UploadServer.init not working correctly #239

Open janus-reith opened 8 years ago

janus-reith commented 8 years ago

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.