upload image question

Former Member
Former Member

#set($uploadedFileResponse = $core_v2_uploadedFile.Get($contextId, $fileName))

Will the uploadedFileResponse corresponding to a specific contextId and fileName expire/disappear after some time?

Because I encounter some issue that I can get the filedata the first time. And we are also saving the contextId and filename.

Later, sometimes even something like after 5 mins, there is no filedata associate to that specific contextId and filename anymore.

Is this the expected behavior?

  • Former Member
    0 Former Member

    Hi David,

    Yes, uploaded files initially are loaded into a temporary area, and then it is the responsibility of the customization to save the file in a permanent location when appropriate. See the  Working with User-uploaded Files Developer Training for more details/example.

     The "Multiple File Upload Cleanup" job handles removing these temporary files, and it has a configuratrion for number of hours to expire after. The default is 2 hours, and the job by default runs once a day. If these settings have been adjusted, cleanup may happen more often.