The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
changing file upload directories - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: changing file upload directories (/showthread.php?tid=739)



changing file upload directories - scully - Jun 9th, 2010

Hi,

I have two forms on two different websites, and each has a file upload field. The files are being uploaded properly to the default settings (which reside on a third website), but I would really like the uploaded files to be sent to a directory on their respective websites.

I have tried changing the values in the forms > edit > fields > options > Setting: file upload folder area, but each time I enter a new upload folder path, I get a "sorry, this does not appear to be a valid folder" message, and each time I enter a new upload folder URL, I get a "...permissions need to be set on...777..." message. The folder path and the permissions are valid, just something not going through.

I have looked at other threads extensively, and while I may have missed something, I didn't see this particular issue addressed. Any help would be appreciated.

Thanks,


RE: changing file upload directories - Ben - Jun 13th, 2010

Hi Scully,

This is probably just a path issue, but it can be a little tricky to debug.

Try creating a file called "test.php" and upload it to one of your upload folders. It should have the following content:

PHP Code:
<?php print_r($_SERVER); ?>

Then load it in your browser and take a look at what's outputted. It'll output a whole thwack of stuff, so you might want to view the page source for a more intelligible format.

What you're interested in is one of the keys that contains the absolute filepath to that folder (NOT the URL - the actual path on the server). Double check that that value is the same one you're entering in the forms > edit > fields > options > Setting: file upload folder.

Good luck!

- Ben


RE: changing file upload directories - scully - Jun 14th, 2010

(Jun 13th, 2010, 9:33 AM)Ben Wrote: Hi Scully,

This is probably just a path issue, but it can be a little tricky to debug.

Try creating a file called "test.php" and upload it to one of your upload folders. It should have the following content:

PHP Code:
<?php print_r($_SERVER); ?>

Then load it in your browser and take a look at what's outputted. It'll output a whole thwack of stuff, so you might want to view the page source for a more intelligible format.

What you're interested in is one of the keys that contains the absolute filepath to that folder (NOT the URL - the actual path on the server). Double check that that value is the same one you're entering in the forms > edit > fields > options > Setting: file upload folder.

Good luck!

- Ben

Ben,

I used the [SCRIPT_FILENAME] => information (which matched the file path I had been using) and still no dice. Permissions set at 777. Puzzling! Thanks for your help.