Hi,
I encountered a problem when dealing with file uploads in a multi server instance environment.
As I cannot be sure to land on the same instance two requests in a row, I cannot rely on filesystem to store tmp files.
I tried to provide Amazon Web Service S3 path as value for my $handleFileUploadsTempDir but it did not work because SerializableFile::getAsFile() method uses php function tempnam() that does not support custom stream wrapper.
The result of tempnam() is the system's default temporary directory instead of the given S3 tempDir
Is there a way to make it work with S3 (or any other external filesystem) or maybe did I miss something on file uploads part ?
Any other suggestion on how to handle this use case is welcome :-)
Thank you !
Hi,
I encountered a problem when dealing with file uploads in a multi server instance environment.
As I cannot be sure to land on the same instance two requests in a row, I cannot rely on filesystem to store tmp files.
I tried to provide Amazon Web Service S3 path as value for my
$handleFileUploadsTempDirbut it did not work becauseSerializableFile::getAsFile()method uses php functiontempnam()that does not support custom stream wrapper.The result of
tempnam()is the system's default temporary directory instead of the given S3 tempDirIs there a way to make it work with S3 (or any other external filesystem) or maybe did I miss something on file uploads part ?
Any other suggestion on how to handle this use case is welcome :-)
Thank you !