Hi,
In the 4th step of article submission if the author presses the upload button without selecting a file, a supplementary file with no name or size could be added to the article.
How can I verify if the author has actually selected a file, before redirecting him to the supplementary file form?
the red square in the below image displays the blank field.
This is from OJS 2.4.8
Thank you @ctgraham,
your responses are really appreciated.
I got to this point but I am unable to get the file information from the ‘file upload control’.
I thought it is an array and tried:
I think the assumption of the original code is that you may want to create a “placeholder” for a supplemental file upload (describing it before adding it).
You code should effectively prevent adding the stub if no file is uploaded.