S
S
shane892015-11-24 07:58:57
Laravel
shane89, 2015-11-24 07:58:57

Not uploading file to server in laravel 5.1?

Uploading a file

$fileround = $request->file('round');
        $path = Storage::makeDirectory('/userid_'.Auth::user()->id);  
        $request->file('round')->move('/home/m/motive/olympiad.spe-nu.org/storage/app/userid_'.Auth::user()->id, 'hj');

writes an error
Call to a member function move () on null
What can the jamb be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Afatar, 2015-11-24
@Afatar

I assume that it is not specified in the submission form
enctype="multipart/form-data"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question