Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload problem
#5
The problem was the 'DOCUMENT_ROOT' : in my case, he had nothing to do with GS.
So, the solution is :

In upload-ajax.php
Replace the line : $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
With : $targetPath = GSDATAUPLOADPATH;

In order to have the same code to do the same thing, we can do the equivalent in upload.php
Replace the line : $path = tsl("../data/uploads/");
With : $path = GSDATAUPLOADPATH;

The code is now more simple and works very well in all cases.
Reply


Messages In This Thread
Upload problem - by spilarix - 2010-03-16, 20:20:13
Upload problem - by sal - 2010-03-16, 20:59:02
Upload problem - by spilarix - 2010-03-16, 21:16:20
Upload problem - by internet54 - 2010-03-17, 00:46:13
Upload problem - by spilarix - 2010-03-17, 06:13:55
Upload problem - by Zegnåt - 2010-03-17, 06:54:11
Upload problem - by ccagle8 - 2010-03-17, 20:28:34
Upload problem - by spilarix - 2010-03-18, 00:28:25
Upload problem - by ccagle8 - 2010-03-18, 20:22:03
Upload problem - by hugo - 2010-03-30, 19:37:55
Upload problem - by spilarix - 2010-04-26, 23:45:16



Users browsing this thread: 1 Guest(s)