-
Notifications
You must be signed in to change notification settings - Fork 8
feature: adding possibility to remove file #439
base: main
Are you sure you want to change the base?
feature: adding possibility to remove file #439
Conversation
How it looks right now: file possibilities:
@artemrys as you raised ticket please have a look at those problems:
|
You are right, there is no concept of a "file" in the backend. We just save the content of the file if we can read it.
If "file" field is encrypted and required then we must ask user to upload a file every time they want to make a change to that entity. It is not convenient, I do agree, but I do not see how we can make it better.
If a user previously uploaded a file and then wants to empty that value then we are sending empty string as a content? But the backend is still going to attempt to encrypt it. Which results in saving some encrypted empty string which add-on developer need to process themselves. |
@artemrys
so to sum up the confusion might be that user thinks he is still using the old file but due to it is encrypted the value there is empty string idea: maybe when we got both of them provided we can just display a simple label "File is empty"/"Value of the file is empty" or sth like that. currently that issue is still there, so thats not something we are creating, but maybe we can improve it somehow |
passing temp name during edit for files that were already submited before name passed only for edit action for rest is null BaseFormView > Control Wrapper > FileInputComponent
adding remove file possibility while doing cloning process
e736338
to
597bf67
Compare
Do you think we can solve this issue by simply not allowing a |
@artemrys Other possibility i see is journey were only if file is encrypted and optional plus user tries to push that old encrypted file without any change, some warning pops up "You can't use previous file", so you basically need to delete it manually if you do not want that change to happen at all, then the user is aware that empty file will be pushed or at least it is more intuitive. Something else might be that for this case we can just remove that filename, so it looks more like there is not any file for this at all. |
when we display file name and data for this file are encrypted then we need to display error message that file needs to be reuploaded
The UI repo was migrated, can you please open another PR for UCC generator repository? |
passing temp name during edit
for files that were already submited before
name passed only for edit action for rest is null
BaseFormView > Control Wrapper > FileInputComponent