Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel move file from local to s3

se IlluminateHttpFile;
use IlluminateSupportFacadesStorage;

// Automatically generate a unique ID for file name...
Storage::putFile('photos', new File('/path/to/photo'));

// Manually specify a file name...
Storage::putFileAs('photos', new File('/path/to/photo'), 'photo.jpg');
 
PREVIOUS NEXT
Tagged: #laravel #move #file #local
ADD COMMENT
Topic
Name
9+1 =