27
Views
9
Comments
Unable to Upload File to Local Folder Using FileSystem Component
Application Type
Reactive

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

2025-07-22 10-30-27
Mandar Deshpande

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.

2023-10-03 13-56-29
Mohammad Iqbal Yusuf Sheikh

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." 

DocumentUploadLocalDrive.oml
2025-12-15 09-29-24
Thibaut G

Hi,
Is it self managed (OnPrem) or Cloud ?
You can use the this Forge Component as an alternative for cloud:
SharedFolder Forge Component

Kind regards

Thibaut 

2023-10-03 13-56-29
Mohammad Iqbal Yusuf Sheikh

Hi Thi,

I am using Cloud.

Please find attached oml file for your refrence

DocumentUploadLocalDrive.oml
2016-04-22 00-29-45
Nuno Reis
 
MVP

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.

2023-10-03 13-56-29
Mohammad Iqbal Yusuf Sheikh

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? 

2025-07-22 10-30-27
Mandar Deshpande

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.


2023-10-03 13-56-29
Mohammad Iqbal Yusuf Sheikh

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:

  1. What exactly is the "OS App Pool Identity"?

  2. How can I check, and grant write permissions to this identity on a folder?

  3. 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!

2025-07-22 10-30-27
Mandar Deshpande

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() 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.