OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Catching file upload errors

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.

Catching file upload errors

Postby osborne » Thu Mar 23, 2006 2:21 pm

When an author uploads a submission file in Step 3 of the submission process, it is processed by the saveSubmit function of the SubmitHandler. This calls uploadSubmissionFile in AuthorSubmitStep3Form. As far as I can see, this function always returns false (updateArticle in the ArticleDAO doesn't return anything). Is that what is intended? [It doesn't cause a bug, but in modifying the script to accept only pdf files I am puzzled by it. It seems to me to make sense for the function to return true upon success. What happens if there is an error when uploading the file?]
osborne
 
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest