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

Easy-to-use file uploading tool #46

Open
glen0125 opened this issue May 6, 2023 · 7 comments
Open

Easy-to-use file uploading tool #46

glen0125 opened this issue May 6, 2023 · 7 comments
Assignees
Labels
feature New feature

Comments

@glen0125
Copy link
Member

glen0125 commented May 6, 2023

The current uploading tool is a system-level file uploading tool. DecApp is unable to distinguish whether the upload request is initiated by itself, nor can it request the files to be uploaded to a specific directory. Therefore, the following improvements are suggested for the tool:

  • The uploading method should be closer to the browser's native uploading experience.
  • DecApp can set the target path for file upload (For security reasons, the path must belong to the DecApp that initiated the upload).
  • DecApp can pass in a session_id when uploading, and then query the progress of the task by session_id.
  • After the upload task is created successfully, the page of DecApp can be closed and the task will continue in the background.
  • DecApp can set the event notification path of successful upload (The path must belong to the DecApp that initiated the upload).
@glen0125 glen0125 added the feature New feature label May 6, 2023
@glen0125 glen0125 self-assigned this May 6, 2023
@glen0125 glen0125 moved this to 💬To Discuss in CYFS-Browser & Runtime May 6, 2023
@wugren
Copy link

wugren commented May 6, 2023

Can event notifications be skipped and just upload files to OOD?
Additionally, can parameters of an event be set when setting up a notification event?

@glen0125
Copy link
Member Author

glen0125 commented May 6, 2023

Can event notifications be skipped and just upload files to OOD? Additionally, can parameters of an event be set when setting up a notification event?

This parameter is optional. If you are not interested in receiving an event notification upon the completion of the upload, you may omit this parameter.

@jinquantianxia
Copy link

The browser does not know what kind of file is selected in the upload tool. Can you provide an interface to query the detailed information of the uploaded file (similar to the File object on the front end)?

@jinquantianxia
Copy link

If there is a large file being uploaded and the upload tool is accidentally closed, can it support automatic detection and resuming the upload?

@glen0125
Copy link
Member Author

glen0125 commented May 6, 2023

If there is a large file being uploaded and the upload tool is accidentally closed, can it support automatic detection and resuming the upload?

Sure

@jinquantianxia
Copy link

After pulling up the upload tool, is it possible to support concurrent transfer of multiple selected files? Just like the front-end multi-select file and upload function

@glen0125
Copy link
Member Author

glen0125 commented May 6, 2023

The browser does not know what kind of file is selected in the upload tool. Can you provide an interface to query the detailed information of the uploaded file (similar to the File object on the front end)?

An HTTP interface will be provided to query the specific file name of the upload using the session_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
Status: 💬To Discuss
Development

No branches or pull requests

3 participants