[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] How to Disable Upload From URL



CAUTION: This e-mail originated outside the University of Southampton.
This works for me.

Thanks David

Izwan
UiTM Library


On Thu, Nov 12, 2020 at 4:46 PM David R Newman <drn at ecs.soton.ac.uk<mailto:drn at ecs.soton.ac.uk>> wrote:

Hi Izwan,

In your archive create the file cfg/cfg.d/z_disable_url_upload.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_disable_url_upload.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1riB2nUiyxy2k4vmsn2kwNeANviU2IB7a6SialrOcI0%3D&amp;reserved=0> (i.e. EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/cfg.d/z_disable_url_upload.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_disable_url_upload.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1riB2nUiyxy2k4vmsn2kwNeANviU2IB7a6SialrOcI0%3D&amp;reserved=0> 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&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=vqkcvhzaT6cRbS5Gg%2BUvgI8VcZdMtJWrD%2BD9lGUNAsE%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=lHEnrXE1ffKNFByDGKs6CbkrzwBKU7vVHr628QJ12ng%3D&amp;reserved=0

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=HbZWX3uMD49p4YJCWeMi%2FsoOWrmFDdHA%2Fhxwfc0l5ng%3D&amp;reserved=0]<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2BVGw0PL9QiPon%2BDsHeheNVmKCZktXP%2BbS3raOTlBn6Y%3D&amp;reserved=0> Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=hcCQKEX8UfsGn3P0WpD%2FK6EXTqSOtA8IEMIOoo3lLLQ%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbe3842ae3cfc41d44eb208d889d7e562%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637410907663940776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2BVGw0PL9QiPon%2BDsHeheNVmKCZktXP%2BbS3raOTlBn6Y%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20201116/a4241ef1/attachment.html