Hi,
I created a simple upload facility that will upload a file specifically a pdf file. Below is the controller of my upload
if(Input::hasFile('my_pdf'))
{
if(Input::file('my_pdf')->move('/uploads'))
{
return "Uploaded";
}
else
{
return "No File";
}
}
else
{
return "No File";
}
After clicking the upload, it prompted that the file was successfully uploaded. But as i checked my public/uploads folder, no file was there.
...
if(Input::file('my_pdf')->move(public_path('uploads'), $fileName))
...
torosegon said:
... if(Input::file('my_pdf')->move(public_path('uploads'), $fileName) ...
thanks torosegon
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community