[Isis-users] RES: ABCD2.0f - Upload de arquivos não salva no caminho correto // File upload doesn't save in the right path

Ligia Dias de Freitas ligia.freitas at pucrs.br
Thu Nov 23 12:01:56 CET 2017


Hi, Egbert.

Thanks for your time to explain!

My question was about uploading files (mostly images) that are attached to records.

After I sent the email I found the file dr_path.def and manage to make it work, already using the new logic of uploading to the base folder, with adjusts in PFT.

I've made some changes in the virtualhost to prevent access via URL for the base folders: data, def and cnv. As far as I've tested, it doesn't affect the use of the database.

Alias /docs/ "/ABCD/www/bases/"

 <Directory "/ABCD/www/bases">
#    Options Indexes FollowSymLinks Multiviews
     AllowOverride None
#    Order Allow,deny
#    Allow from all
     Require all granted
 </Directory>

 <Directory "/ABCD/www/bases/*/data/">
     Require all denied
 </Directory>

 <Directory "/ABCD/www/bases/*/def/">
     Require all denied
 </Directory>

 <Directory "/ABCD/www/bases/*/cnv/">
     Require all denied
 </Directory>

Thanks,

Lígia Freitas


-----Mensagem original-----
De: De Smet Egbert [mailto:egbert.desmet at uantwerpen.be] 
Enviada em: quinta-feira, 23 de novembro de 2017 08:52
Para: Ligia Dias de Freitas <ligia.freitas at pucrs.br>; isis-users at iccisis.org
Assunto: Re: ABCD2.0f - Upload de arquivos não salva no caminho correto // File upload doesn't save in the right path

Hi,

which exact upload are you referring to ? Pictures for users ? PDF's for full-text repositories ? Based on this I can check what is going wrong with the path (and only the path I assume, not really the function itself). In principle the path can still be adjusted and subsequently the PFT referring to the file can also be adapted to the correct path.
I noted that one of the comments in config.php for db_path and img_path is wrong and of course this needs corrected even if it is only a comment.

In general in ABCD2.0 we prefer to no longer use the htdocs/bases directory but indeed rather the bases-directory itself. This is based on the reasoning that the htdocs-directory needs different protection settings (file and folder-attributes) than the databases themselves which need to be fully writeable. So does the folder for uploads : write-access rights are needed. Also for backing up it seems to be easier to have also the 'digital objects' referred to to reside with the databases, not in a completely different directory. For the same reason the temporary files directory for SECS-WEB has been moved from the htdocs/secs-web directory to the secs-web database-directory.
For the full-text repositories there is - for each database in its own directory - the file 'dr_path.def' which allows to define the 'ROOT' folder (of the hierarchy for upload-folders) and the COLLECTION for the location of the 'sections' of repositories (used by the batch-import script e.g.).
When all this has fully been tested and stabilized I will once more update the manual to make this more clear. 

Egbert de Smet
Universiteit Antwerpen
________________________________________
From: isis-users <isis-users-bounces+egbert.desmet=ua.ac.be at iccisis.org> on behalf of Ligia Dias de Freitas <ligia.freitas at pucrs.br>
Sent: Tuesday, November 21, 2017 6:05 PM
To: isis-users at iccisis.org
Subject: [Isis-users] ABCD2.0f - Upload de arquivos não salva no caminho correto // File upload doesn't save in the right path

[English version below]

Olá,

estou testando a versão ABCD2.0f (2017-01-01), baixada do Github, e encontrei um problema: os arquivos que faço upload na edição de registros vão para:
/ABCD/www/bases/dbn
em vez de irem para
/ABCD/www/htdocs/bases/dbn

No arquivo config.php a configuração está assim:
$img_path=$ABCD_path."www/htdocs/bases/";

Alguém sabe como corrigir este comportamento?


Hi,

I'm testing the version from Github [ABCD2.0f (2017-01-01)] and found the following problem: the uploaded files are going to:
/ABCD/www/bases/dbn
instead of:
/ABCD/www/htdocs/bases/dbn

In the config.php it's like this:
$img_path=$ABCD_path."www/htdocs/bases/";

Does anyone knows how to correct this?

Thanks

Cordialmente,
[Brasão-PUCRS---Original]


Lígia Freitas
Bibliotecária Júnior | CRB-10/2080
Setor de Suporte e Desenvolvimento
Biblioteca Central Irmão José Otão
___________________________________

Av. Ipiranga, 6681 - Prédio 16 - 5º andar
CEP: 90619-900 - Porto Alegre - RS
Fone: (51) 3353.4371
ligia.freitas at pucrs.br<mailto:ligia.freitas at pucrs.br>
www.pucrs.br/biblioteca<http://www.pucrs.br/biblioteca>





More information about the isis-users mailing list