Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1952 ImageGallery: Batch upload fails on Windows host

v1.8.5
open
nobody
5
2012-12-08
2005-04-26
Klaus Post
No

In "imagegallib.php" the $archive->extractByIndex
around line 410 fails.

This is because $tmpDir is windows style "C:\TEMP"
(C-colon-backslash-TEMP) for instance, and PclZip adds
"./" (dot-slash) in front of the path. That results in
an output path that looks like this "./C:\temp"
(dot-slash-C-colon-blackslash-TEMP).

This makes extractByIndex fail, thus not unpacking any
files, and making the upload fail. My own temporary
solution is to remove $tempDir and manually insert a
relative path, but that is not a good solution IMO.

Discussion