Skip to content

finished in UploadServer.init not working correctly #239

@janus-reith

Description

@janus-reith

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions