File Management in the web client
Question: On the web client, the user uploads a file to the "Attached files" section of the form. Is needed to access the file, copy and create a temporary file. After the file data is processed, delete the temporary file. Working with a local infobase the task was successfully solved but when tested on web client it doesn't work correctly as there is no access to use the files in the disk. How can we work around this issue?
Answer: This is a known limitation of browsers (and thus web clients) - the lack of file write access. There is no good way around this limitation. The only option is to avoid writing files to disk entirely. It is recommended that you use Temporary Storage instead. The web client knows how to read files and upload them to the Temporary Storage. The storage address can then be passed to the server to arrange for the file to be processed.
For more information on how to use Temporary Storage, see https://kb.1ci.com/1C_Enterprise_Platform/Guides/Developer_Guides/1C_Enterprise_8.3.22_Developer_Guide/Chapter_21._Temporary_storage_functionality__handling_files_and_pictures/21.1._Temporary_storage/