brandonsavage / Upload

File uploads with validation and storage strategies
MIT License
1.67k stars 315 forks source link

How to upload? #97

Closed yongloon closed 7 years ago

yongloon commented 7 years ago

Hi... i had try the example but its dont work...

$file = new \Upload\File('foo', $storage); is this variable same as $_FILES?

yuriygr commented 7 years ago

foo is name yout upload input

yongloon commented 7 years ago

i tested.... but get slim application error.

yongloon commented 7 years ago

I had error from the 1st line $storage = new \Upload\Storage\FileSystem('/upload');