Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for a configurable temporary upload path. #1387

@adampatterson

Description

@adampatterson

I've run into a bit of an issue with an App + Worker setup and Statamic forms with attachments that use the file field.

Because Statamic assumes that the temp upload path is local, when the worker tried to attach a file it's unable to access it.

fopen(): Failed to open stream: No such file or directory.
https://github.com/statamic/cms/blob/5.x/src/Assets/Uploader.php#L59

There are a number of hard coded references to the local file system with will cause issues for a distributed system.

This was only an issue with Forms from what we've seen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions