-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Bug]uploadInfo.isUploadInProgress() always be true even the uploading has finished #25
Comments
I am not sure, what you are trying to do here.. You can look at the DiskStorageService implementation. |
what i want is just to move the upload to another disk location when the upload completed. so i need to check ui.isUploadInProgress() |
you should extend the DiskStorageService class and override the update method.
and make sure while initializing TusFileUploadService set the storageService as your extended class/object -- withUploadStorageService() |
Hi, The library assumes that the upload is part of some web form. This means that After the user submits the form, a However, this indeed does not cover use cases where the file upload might happen without any web form (e.g. pure file transfers). I'm thinking about adding some kind of For your use case, you could then add your own I'll see if I can work something out for this in the code in the coming days/weeks. |
You can also take a look at this example: https://github.com/ralscha/blog2019/blob/51374dd/uploadtus/server/src/main/java/ch/rasc/upload/UploadController.java#L50 This developer seems to be doing something similar as you without the need for a separate form controller. |
Hi Tom, |
@controller
@RequestMapping("/upload")
public class FileUploadController {
@value("${tus.server.data.directory}")
protected String tusDataPath;
}
The text was updated successfully, but these errors were encountered: