[EP-tech] How to Disable Upload From URL

David R Newman drn at ecs.soton.ac.uk
Thu Nov 12 08:46:43 GMT 2020


Hi Izwan,

In your archive create the file cfg/cfg.d/z_disable_url_upload.pl (i.e. 
EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/z_disable_url_upload.pl 
subsituting capitalised parts as appropriate) and add the following line:

$c->{plugins}->{"Screen::EPrint::UploadMethod::URL"}->{params}->{disable} 
= 1;

Then run the following commands to test and reload EPrints:

EPRINTS_PATH/bin/epadmin test ARCHIVE_NAME

apachectl graceful

If you are running Ubuntu or Debian the second command might be 
"apache2ctl graceful"

Regards

David Newman

On 12/11/2020 04:38, MOHD.IZWAN SALIM via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Dear all, how to disable the From URL upload. I want user to upload 
> only from File.
>
> Regards
>
> *Izwan*
> UiTM Library
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7C%7C29c0035fe93a4f9f661708d886e77bed%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637407676080082153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5DZ1y49E4Z1N5cRceRKwIgTLaPQJZNyZkGhScPAkkqM%3D&reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7C%7C29c0035fe93a4f9f661708d886e77bed%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637407676080082153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QL3%2F3oRa11uZQvECjlWcQV9v7XTb1HnknCiU7z%2FefbQ%3D&reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=04%7C01%7C%7C29c0035fe93a4f9f661708d886e77bed%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637407676080082153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mezozxU%2BeY1%2BvW9NGSqsft%2BghjBUlmsLA4gY9%2FnOSV8%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20201112/492a3ab6/attachment.html 


More information about the Eprints-tech mailing list