There are two solutions that I can think of with my limited knowledge. Since, by default, a file download will only start after the request is published, an alternative method needs to be developed.
1. Download the file through a script and process the file: Use a script (for example: a jQuery script ) to download the file, and after the download is complete, call the script (onComplete event) to display the values โโin a read-only field. This whole process can be associated with your "Process" button or with a trigger with a time delay after changing the FileField.
2 User form for uploading a file:. You can separate the file field and other fields (only the read fields that you mentioned). If you create a custom form only from the file upload field, and as soon as the user submits a request, you can display another form with the initial values โโdisplayed in read-only fields. This way you do not need to have a script, but you will need to have 2 forms.
Hope this helps. If you find any other solution, share it :)
source share