[File Upload] Could not find file 'C:\Windows\TEMP\tmp8F3E.tmp'.

[File Upload] Could not find file 'C:\Windows\TEMP\tmp8F3E.tmp'.

  
Forge Component
(12)
Published on 27 Aug by João Carvalho
12 votes
Published on 27 Aug by João Carvalho

Hi,

Is there someone here have experienced the problem below:

We can't recreate the error on any of our environment except in the production environment (cloud). 

This is working before we added additional front end server.

Hello Froilan,

Without deep knowledge about your environment, I'd say that if you are using the component in a scenario with multiple front-ends, without sticky sessions in place the problem might be related with the behavior around sending a file in chunks. If you don't have sticky sessions, each chunk is being handled by a different front ends. Since the chunks are being stored in the file system, the temp folder in the front end that received the first chunk is not available for the second one that is trying to append the chunk to an existing file.

If you found that this is case, I'd recommend to change the widget and use the network file system component (http://www.outsystems.com/forge/99/) and store the chunks in a network folder available for all front ends.  Alternatively, you can store each chunk in the DB and thus also available for all front ends.


Thank you.

Hi João,

Thanks for your reply, yes you are correct that we don't use sessions and found out that your statement "the temp folder in the front end that received the first chunk is not available for the second one that is trying to append the chunk to an existing file." is actually what is happening. For now we opt to use the database for temporary storage. For future enhancement we will consider trying your recommendation to use network file system. 

Thanks again and have a great day ahead!

Regards,

Froi