HTTP_POST_FILES on UNIX server cannot read file
We are currently facing an issue where we are trying to upload a file to the Content Server using the FM HTTP_POST_FILES. The file we are trying to upload resides on the SAP server itself under the folder /usr/sap/DHC/SYS/global/temporary_folder/
When using transaction OAAD, a file can be manually stored and assigned. Internally, the same function module is used, but in that case, the file is read from the user's PC.
In our scenario, the file can be found using OPEN DATASET and RZL_READ_DIR_LOCAL. However, when using the HTTP_POST_FILES FM where the absolute path and filename are passed on, the FM goes into error with the following error :
Error when uploading file: /usr/sap/DHC/SYS/global/temporary_folder/00006112.jpg (file_open_error)
Does anyone have an idea what might be the issue ? Could it be that HTTP_POST_FILES is incompatible with a UNIX path ?