panthro's avatar

Artisan script to uplaod images?

On rare occasions, I need to upload resources to my website, I cannot see the point in creating a form and protecting it etc.

I was hoping to write a simple artisan script that would create a model, and upload an image (and process it like my site processes other images that a standard user uploads).

Is it possible to run an artisan script on a live site, and upload files from my local hard drive to the live site for processing and sending to S3? How?

Note: i'm aware of issues of doing things like this on a live site. This will be on rare occasions.

0 likes
3 replies
automica's avatar

If you are just adding static files, why not add a directory to your version control and then deploy them as you would do with site assets?

panthro's avatar

@automica assets will sit on S3, need processing before uploading to S3 by my application. Don;t want to leave assets on my repository as static files.

Please or to participate in this conversation.