OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Validation against file size

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Validation against file size

Postby piotreba » Thu May 12, 2011 4:33 am

Hello,


It would be great to be able to set file size limit of uploading file and validate it, so that if a file size exceeds the one set in php.ini not the server error shows, but instead only the local ojs/ocs error appears.




Peter
piotreba
 
Posts: 163
Joined: Mon Dec 13, 2010 3:29 pm

Re: Validation against file size

Postby mcrider » Mon May 16, 2011 11:16 am

Hi Peter,

I don't think that's possible -- The only way for OJS to test the file size of an uploaded file is if its already been uploaded, in which case its already had to pass php.ini's file size limit.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Validation against file size

Postby piotreba » Mon May 16, 2011 11:19 am

How about some form with JS or Flash?
piotreba
 
Posts: 163
Joined: Mon Dec 13, 2010 3:29 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest