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