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
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.

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?]
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Return to OJS Development

Who is online

Users browsing this forum: Google [Bot] and 1 guest