File Manager

Permalink
I uploaded a 13.9 MB .tiff to my website and I get a error stating this...


Invalid form token. Please reload this form and submit again.

I was wondering if someone could help me problem solve this.

The reason I'm uploading this file is for a client to download it.

bryanlewis
 
ScottC replied on at Permalink Reply
ScottC
php variables in php.ini

The default is I think 2 for upload and not sure on the post size, but probably around there.
bryanlewis replied on at Permalink Reply
bryanlewis
I need to place that in the root directory right...

just make a file called php.ini (there isn't one in there already) and put ...

upload_max_filesize 120M
post_max_size 120M

Thanks for the response!
bryanlewis replied on at Permalink Reply
bryanlewis
I put the php.ini file in the root and in the files directories and refreshed the page and it gives me the same javascript error... I'm not for sure what the deal is...
ScottC replied on at Permalink Reply
ScottC
I would also look into that. I haven't had a problem with this yet so I haven't investigated.

Or just use your ftp to the incoming folder and call it a day. files/incoming/ i don't believe it is created in the install, but i do know concrete5 filemanager looks for it and ftp isn't subject to script timeout or post variable issues.
bryanlewis replied on at Permalink Reply
bryanlewis
I didn't know about the files/incoming folder.. i tried this... and the files uploaded just fine... is there anything that I need to do in order to see these files in the file manager now?
bryanlewis replied on at Permalink Reply
bryanlewis
I tried to add a Alternate Storage Directory in the cms and it still isn't finding my files
ScottC replied on at Permalink Reply
ScottC
go to your filemanager, hit the "more" button right next to upload.

It will show you a dialog box that has a tab for "add incoming", click that and your file should be there and be able to be imported.

I uploaded a 36mb tif to the ftp folder and it worked fine and it is in the filesystem. I won't link to this for obvious reasons, but trust me, it works.

I created an incoming folder under files and uploaded to that.
ScottC replied on at Permalink Reply
ScottC
under dashboard/files/access

tiff is there, tif is not by default.
bryanlewis replied on at Permalink Reply
bryanlewis
worked like a charm! thanks a million!
mattwilliamson replied on at Permalink Reply
mattwilliamson
I have a c5 site for a client who cannot use FTP for security reasons. Can anyone tell me the proper syntax for the php.ini and then also explain how I make sure that they can upload a 20MB PDF?
bryanlewis replied on at Permalink Reply
bryanlewis
this is what I used and it worked just fine

upload_max_filesize 80M

post_max_size 80M

I would test it with that pdf or a tiff file just to make sure things work properly before letting the client loose
mattwilliamson replied on at Permalink Reply
mattwilliamson
Did you need to do anything special to the C5 site after you placed the php.ini file?

i logged out and back in, but no joy.
neptune replied on at Permalink Reply
neptune
thanks for the info here. i was screwed because the uploader wasn't working and i'm glad to know about this ftp thing!