Bojan, I address your questions below and (I think) give you the info you need to load images and other media files as information resources into Arches using the .arches format.
1. For the purpose of data import using a .arches file, it is assumed that the media files already exist within the target directory. They are not copied in there when loading from .arches. 2. Yes. It is necessary to populate some settings to let Arches know where to grab files from. You will need to set up IIS (on Windows) or Apache (on Linux) to create a virtual directory from which Arches can read the files. Further, the settings.py file within your application will need to be edited to properly understand where to read the image files from. The defaults for those settings are outlined below: ******* # Absolute filesystem path to the directory that will hold user-uploaded files. MEDIA_ROOT = os.path.join(ROOT_DIR, 'uploadedfiles') # URL that handles the media served from MEDIA_ROOT, used for managing stored files. # It must end in a slash if set to a non-empty value. MEDIA_URL = '/files/‘ ******* Assuming you maintain these default settings, whatever file paths you define within your .arches file will go into //root/uploadedfiles/files. So, in the example you provided, you would want to upload your files to //root/uploadedfiles/files directory (it looks like you want to load into a "docs" subdirectory, which we don't support at the moment). 3. For data loaded from .arches format, thumbnails are treated just like regular image files - and not automatically generated. Best, Adam -- Adam Lodge Geospatial Systems Consultant Farallon Geographics On Wednesday, June 17, 2015 at 6:11 AM, Bojan Kastelic wrote: > Hi, > I'm having trouble loading files into Information resources via .arches file. > Loading package completes loading without issues and Information resource is > populated with all my data except FilePath. Link to Digital Representation in > report is empty (it links to folder ocalhost/files) and database with file > paths (data.files) also. I tried with different file paths (I checked that > Python's isfile(path) returned True, I even loaded my file to > /uploadedfiles/files folder) but with no success. Loading files via (HIP) > application works without problems. > > What is correct procedure to import documents via .arches files: > - must be documents already copied in target folder (/uploadedfiles/files) or > are they copied at loading .arches file? > - are there some other requirements for uploading documents via .arches files? > - what about pictures - must I provide a thumbnail also or is it created at > load? > > Here is my (a little modified) example of document.arches (document.relations > is empty (has only header)): > RESOURCEID|RESOURCETYPE|ATTRIBUTENAME|ATTRIBUTEVALUE|GROUPID > DOC001|INFORMATION_RESOURCE.E73|TITLE.E41|TEST DOCUMENT|G1 > DOC001|INFORMATION_RESOURCE.E73|TITLE_TYPE.E55|TITLE_TYPE:1|G1 > DOC001|INFORMATION_RESOURCE.E73|FILE_PATH.E62|/docs/Test.pdf|G2 > > My loading command: python manage.py packages -o load_resources -s > 'my_hip_app/source_data/business_data/document.arches' > > What am I doing wrong? > > Any help would be appreciated. > > Thanks, > > Bojan > -- > -- To post, send email to [email protected] > (mailto:[email protected]). To unsubscribe, send email to > [email protected] > (mailto:[email protected]). For more information, > visit https://groups.google.com/d/forum/archesproject?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Arches Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > (mailto:[email protected]). > For more options, visit https://groups.google.com/d/optout. -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
