[EP-tech] Re: enable-web-imports

George Mamalakis mamalos at eng.auth.gr
Fri Sep 25 06:20:00 BST 2015


Hi Stof,

And since you've shown us your sample XML file, mind that the <files> 
section should be enclosed within a 
<documents><document></document></documents> section in order for your 
files to be shown within each eprint. Otherwise they won't (if I'm not 
mistaken).

The minimum XML syntax required is shown in this list's emai: 
http://www.eprints.org/tech.php/20718.html that was -ironically- sent 
one day before your last email (on the 23rd of Sept) :):).

Of course, don't forget --enable-file-imports when running your import 
command, as Adam suggested (and as your error implied).

For more import options, run:

$ perldoc ./bin/import

within EPrints' home directory.

Good luck with your migration!

On 24/9/2015 6:48 μμ, Field A.N. wrote:
> You need to use the --enable-file-import flag on the import script.
> --
> Adam Field
> Business Relationship Manager and Community Lead
> EPrints Services
> +44 (0)23 8059 8814
>
>
>
>
>
> On 24 Sep 2015, at 16:24, Edwin Gamez wrote:
>
>> Hi..!
>> I have the same problem, when i try import XML  show this:
>>
>> Starting EPrints Repository.
>> Connecting to DB ... done.
>> Failed to retrieve Test.pdf: 403 Access denied by configuration: file imports disabled
>> Failed to create subdataobj on document.files at eprints/bin/../perl_lib/EPrints/DataSet.pm line 1009
>> Failed to create subdataobj on archive.documents at eprints/bin/../perl_lib/EPrints/DataSet.pm line 1009
>> Ending EPrints Repository.
>>
>> this is my file:
>>
>> <file>
>>              <datasetid>document</datasetid>
>>              <filename>Test.pdf</filename>
>>              <url>Test.pdf</url>
>>            </file>
>> <file>
>>
>> How can we enable import file?
>>
>> Thanks
>>
>>
>> 2015-09-24 11:16 GMT-04:00 cmdt-news at cmdt.ch <cmdt-news at cmdt.ch>:
>> sorry, local import should be looking:
>>
>> <files>
>> <file>
>> <filename>CSA_02efl.pdf</filename>
>> <mime_type>application/pdf</mime_type>
>> <url>/tmp/21352.pdf</url>
>> </file>
>> </files>
>>
>> thanks
>>
>> *** 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/
>> *** EPrints developers Forum: http://forum.eprints.org/
>>
>> *** 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/
>> *** EPrints developers Forum: http://forum.eprints.org/
>
> *** 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/
> *** EPrints developers Forum: http://forum.eprints.org/


-- 
George Mamalakis

IT and Security Officer
Electrical and Computer Engineer (Aristotle Un. of Thessaloniki),
PhD (Aristotle Un. of Thessaloniki),
MSc (Imperial College of London)

Department of Electrical and Computer Engineering
Faculty of Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379





More information about the Eprints-tech mailing list