Announcement

#1 2021-09-14 05:03:23

cg09
Member
2021-09-13
3

Change upload directory in windows 10

Hello/Hi/Greetings,

Currently my upload directory resides on C:\inetpub\wwwroot but I would like to have all pictures saved on my mirror drive currently assigned as M:\

I tried editing the local files editor local config "$conf['upload_dir'] = 'm:\;" but obviously its wrong format as i get error:

PHP Parse error:  syntax error, unexpected ''m:\';
' (T_ENCAPSED_AND_WHITESPACE) in C:\inetpub\wwwroot\plugins\LocalFilesEditor\include\functions.inc.php(45) : eval()'d code on line 7

Any suggestions?


Piwigo 11.5.0 Check for upgrade
Operating system: WINNT
PHP: 7.3.30 (Show info) [2021-09-14 03:02:08]
MySQL: 8.0.25 [2021-09-13 21:02:08]
Graphics Library: GD bundled (2.1.0 compatible)

Offline

 

#2 2021-09-14 13:59:24

erAck
Only trying to help
2015-09-06
2026

Re: Change upload directory in windows 10

Why 'm:\' (assuming that the trailing semicolon *within* the string was just a typo)
Effectively that is an unclosed string as the \' sequence escapes to a literal ' apostrophe.

Usually Windows is able to handle forward slashes in most places with paths, so 'm:/' would be good.
Try only 'M:' because upload_dir gets directory or file names appended with a slash as with '/name'.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact