Attachments Control

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
darshanP
Posts: 4
Joined: October 31st, 2021, 2:14 pm
Contact:

Attachments Control

Unread post by darshanP »

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
WebAttachmentsFolder.png
WebAttachmentsFolder.png (26.83 KiB) Viewed 745 times
WebAttachmentsFolder.png
WebAttachmentsFolder.png (26.83 KiB) Viewed 745 times
CRAForm-Attachments.png
CRAForm-Attachments.png (13.69 KiB) Viewed 745 times
CRAForm-Attachments.png
CRAForm-Attachments.png (13.69 KiB) Viewed 745 times
word count: 154
SumanPrasad
Posts: 88
Joined: August 26th, 2021, 5:21 pm
Contact:

Re: Attachments Control

Unread post by SumanPrasad »

We will put following feature in our development queue based on your request:
  • 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.
Once we have a task # for this, we will update this post. We will also update it when this task goes in PD.
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
SumanPrasad
Posts: 88
Joined: August 26th, 2021, 5:21 pm
Contact:

Re: Attachments Control

Unread post by SumanPrasad »

Task 10087 is created for this feature request.
word count: 8
JefferyD
Posts: 178
Joined: August 31st, 2021, 11:37 am
Contact:

Re: Attachments Control

Unread post by JefferyD »

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
Some examples of what this could be used for:
  • 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
JustinVanRegenmorter
Posts: 576
Joined: August 26th, 2021, 9:56 am
Contact:

Re: Attachments Control

Unread post by JustinVanRegenmorter »

Task 11368 has been created to discuss adding the additional DNDFileUpload control events.
word count: 13
Post Reply