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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

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: 151
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: 151
Joined: Mon Dec 13, 2010 3:29 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests