Using the X on the attachments does not delete the file from the folder.
And if we try to re-attach the same file it does not show the file name on the form because it's already present in the folder.
Can we make the control such that it gives some control over the attachments to the developer?
Currently, the developer has no information over what files were added to the folder.
Some use cases for this could be -
- Suppose a user attached some files and saved the form and came back to the form later, the same control could be used to display all attachments related to that request form.
- Attachments names won't get cleared from the UI after a refresh.
- Re-attaching same file could cause issue, we can have a flag for such cases where the developer can set it to "replace" or "make copy" of same files attached.
Attachments Control
-
- Posts: 4
- Joined: October 31st, 2021, 2:14 pm
- Contact:
Attachments Control
- Attachments
-
- WebAttachmentsFolder.png (26.83 KiB) Viewed 741 times
- WebAttachmentsFolder.png (26.83 KiB) Viewed 741 times
-
- CRAForm-Attachments.png (13.69 KiB) Viewed 741 times
- CRAForm-Attachments.png (13.69 KiB) Viewed 741 times
word count: 154
-
- Posts: 88
- Joined: August 26th, 2021, 5:21 pm
- Contact:
Re: Attachments Control
We will put following feature in our development queue based on your request:
At present, we suggest you to use clear the DND file every time you load the page so that it does not have any existing file that you do not want to process.
- If you delete a file using (x), it will delete that file from server.
- DNDFile upload will always show all existing files in the folder.
- You should be able to get list of files from DNDFileUpload HtmlId and pass it to controller. Exactly how this will be done will be decided later.
At present, we suggest you to use clear the DND file every time you load the page so that it does not have any existing file that you do not want to process.
word count: 121
-
- Posts: 88
- Joined: August 26th, 2021, 5:21 pm
- Contact:
-
- Posts: 178
- Joined: August 31st, 2021, 11:37 am
- Contact:
Re: Attachments Control
Additionally, could "Upload Started", "Upload Completed", and "File Deleted" events be created for the DNDFileUpload control?
- "Upload Started" - Event fires each time a user initiates an upload and prevents upload from starting until the event completes
- "Upload Completed" - Event fires when a file finishes uploading and no other file is waiting to be uploaded
- "File Deleted" - Event fires when a file is removed by the user
- Initialization logic (like emptying the destination folder before uploading)
- File validation on upload or deletion (like making sure user uploaded correct type, name format, or number of files)
- Replacing user "Submit Files" button with automatic trigger
- Refreshing a separate "Attachments" section when files are added or removed
word count: 122
-
- Posts: 576
- Joined: August 26th, 2021, 9:56 am
- Contact:
Re: Attachments Control
Task 11368 has been created to discuss adding the additional DNDFileUpload control events.
word count: 13