Submission of Article in allowed file format only

Sorry for weak language
Please tell me
how can I restrict author to upload article (in second step of five) to upload file in some specific format only.

mean to say I want to disable file upload in .pdf format for author

Hi @ammar,

To do that, you’d need to write some PHP. Take a look at classes/author/form/submit/AuthorSubmitStep2Form.inc.php, which is where the submission upload form is implemented.

Regards,
Alec Smecher
Public Knowledge Project Team

thanks @asmecher for your swift response. I shall be very thankful if you help me in writing that piece of code. I am not a pro in PHP

looking forward toward your cooperaton

Hi @ammar,

You’ll need some PHP expertise in order to do this; I can’t write it for you but if you get stuck on a particular aspect I can provide some high-level guidance.

Regards,
Alec Smecher
Public Knowledge Project Team