Hello Everyone,
I am working on a file upload feature where users submit a document through a web screen, and the file is saved to a local folder on the server using the FileSystem component. I am using the File_WriteBinary action, but the file does not appear in the specified folder, and no error is displayed.
Is this approach correct for saving files to a local folder?
Do I need to always provide Domain/Username/Password for local paths?
Any guidance, examples, or similar experiences would be greatly appreciated.
Thank you,
Mohammad Iqbal
Can you make sure if :
1. Path is fully qualified.
2. Verify the folder exists before writing.
3. Server action is properly called; File_WriteBinary action is wrapped inside a Server action and called using a Server action call.
Hi Mandar,
The path I'm using is fully qualified, and I'm passing it directly to the File_WriteBinary server action. Please find the attached OML for reference."
Hi,Is it self managed (OnPrem) or Cloud ?You can use the this Forge Component as an alternative for cloud:SharedFolder Forge ComponentKind regardsThibaut
Hi Thi,
I am using Cloud.
Please find attached oml file for your refrence
Hello.
I'm seeing in the oml that you are using a personal email. If this is a Personal Environment, you can't access the disk.
Also, don't do so many calls on a client action to the server. We are dealing with binaries, that's the heaviest type of file.
Thank you for your feedback — you're absolutely right.
You're right that this OML was built quickly in my Personal Environment, which led to multiple server calls inside the client action. That was just for initial testing.
However, I’m now working on a non-personal (enterprise) environment, and I’m still facing the same issue with disk access using File_WriteBinary. The path is fully qualified, but the file isn’t being saved, and there are no errors being thrown.
Could you please advise if there are specific permissions or configurations required on the server for FileSystem actions to work properly in a non-personal setup?
You can check:
On Target folder - Properties -> Security Tab - > Edit: Check if correct user is added here and it has write/modify permissions.
The OS App Pool Identity must have write permissions on target folder.
Hi,
Thanks for the suggestion!
I initially tried writing the file to a folder on the C:\ drive, but I realized I don’t have write permissions there. So I switched to using the Downloads folder, which should allow writing—but unfortunately, it's still not working.
Could someone please help me understand:
What exactly is the "OS App Pool Identity"?
How can I check, and grant write permissions to this identity on a folder?
Is there a recommended way to test if the app can write to the folder?
Any help or guidance would be greatly appreciated!
Thank You!
Can you try using custom folder like D:\OSUploads instead of Downloads.
Also, to confirm write access issue, use File_WriteText() instead of File_WriteBinary()