mercredi 7 octobre 2015

Heroku Laravel 5.1 file-system upload

i got a problem uploading files into Heroku app, using Laravel 5.1 framework and Clear DB ad-dons in Heroku.
Already read Laravel docs, but i think the problem is in the save method... i mean in local mode it works fine :

1) \Storage::disk('local')->put($name, \File::get($file));

or

2)  

    $name = $request->file->getClientOriginalName();
    Storage::put($name,  
    file_get_contents($request->file('path')->getRealPath())
    );

I use "\Storage::disk('local')" because i supose 's3' for amazon and Rackspace Cloud Storage... shall i use disk('web') or something like that?
any suggestion? 



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire