Skip to content

Custom File Upload tempDir #316

@nfragnet

Description

@nfragnet

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions