EPrints Technical Mailing List Archive

Message: #08363


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [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@ecs.soton.ac.uk> wrote:

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: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Virus-free. www.avg.com