close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Uploading files not working

Thread began 7/23/2014 9:44 am by balexander389215 | Last modified 7/23/2014 2:07 pm by balexander389215 | 491 views | 7 replies |

balexander389215

Uploading files not working

With Ray's help, through a private session I created a file upload page that seemed to function on the test server but now that I've uploaded it to the live server it no longer functions. Ray has suggested that I upload the files to root but that died not work and contacting the ISP they said that I could not get to root that way. I tried then to change it to upload the files to public_html but I have been unable to make it work in any fashion. The directory I want the files to go into is artists_files. I now have three of these directories created in different location and have tried .../.../artist_files
.../artist_files and just artist_files but the uploads do not go anywhere. I have attached the page. I have tried to create a new upload page but still cannot make it work. Can you point me in the right direction?
Thanks

Attached Files
upload.zip
Sign in to reply to this post

Jason ByrnesWebAssist

To troubleshoot, add the following code at line 1:

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>




and add this code in the page body to write the file upload debug info to the page:

<?php echo WA_DFP_AllUploadsDebug(); ?>
<?php
if(isset($_FILES)) {
echo("<pre>");
var_dump($_FILES);
echo("</pre>");
}
?>




Post back the debug info that is written to the page and any errors after trying to upload again.

Sign in to reply to this post

balexander389215

When I first open the page the following information is displayed. I thne tried an upload. I'll append the resulting information displayed on the page following this.

Status object: WA_UploadResult1
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult2
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult2_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult3
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult3_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult4
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult4_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult5
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult5_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult6
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult6_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult7
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult7_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult8
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult8_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult9
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult9_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
Status object: WA_UploadResult10
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult10_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1

array(0) {
}


Information after trying an upload

Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult2
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult2_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult3
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult3_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult4
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult4_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult5
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult5_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult6
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult6_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult7
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult7_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult8
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult8_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult9
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult9_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult10
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult10_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded

array(10) {
["fieldset_Upload_File_1_File"]=>
array(5) {
["name"]=>
string(11) "59216AT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpJgi71W"
["error"]=>
int(0)
["size"]=>
int(7139)
}
["fieldset_Upload_File_File"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["fieldset_Upload_File_File_2"]=>
array(5) {
["name"]=>
string(11) "59216BT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpV7DtJp"
["error"]=>
int(0)
["size"]=>
int(6766)
}
["fieldset_Upload_File_File_3"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["fieldset_Upload_File_File_4"]=>
array(5) {
["name"]=>
string(11) "59216CT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpRlDIAS"
["error"]=>
int(0)
["size"]=>
int(8024)
}
["fieldset_Upload_File_File_5"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["fieldset_Upload_File_File_6"]=>
array(5) {
["name"]=>
string(11) "59216DT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpxbKYBl"
["error"]=>
int(0)
["size"]=>
int(6942)
}
["fieldset_Upload_File_File_7"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["fieldset_Upload_File_File_8"]=>
array(5) {
["name"]=>
string(12) "IMG_0766.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php1mXOMO"
["error"]=>
int(0)
["size"]=>
int(2164307)
}
["fieldset_Upload_File_10_File"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
}

Sign in to reply to this post

Jason ByrnesWebAssist

This post has been deleted.

Jason ByrnesWebAssist

the upload behaviors are bound to file fields that dont exist, for example, the last file field is named "fieldset_Upload_File_10_File":

<input name="fieldset_Upload_File_10_File" type="file" id="fieldset_Upload_File_10_File" size="30" tabindex="10">




the code for that upload:

<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult10");
if(isset($_POST["Default_submit"]) || isset($_POST["Default_submit_x"])){
WA_DFP_UploadFiles("WA_UploadResult10", "fieldset_File_10_File_10", "2", "[NewFileName]_[Increment]", "false", $WA_UploadResult10_Params);
}
?>



is referencing a file field named "fieldset_File_10_File_10" which does not exist on the page.

you will need to edit each of the upload behaviors and reselect the file field it should use.

Sign in to reply to this post

balexander389215

I went through the file and made sure the field set names were all the same. It still did not upload. I only copied the bottom half of the error message as the top was the same.


["fieldset_Upload_File_1_File"]=>
array(5) {
["name"]=>
string(11) "59216AT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php6Rru5x"
["error"]=>
int(0)
["size"]=>
int(7139)
}
["fieldset_Upload_File_6_File"]=>
array(5) {
["name"]=>
string(7) "Pat.png"
["type"]=>
string(9) "image/png"
["tmp_name"]=>
string(18) "/var/tmp/phprMZfyV"
["error"]=>
int(0)
["size"]=>
int(147284)
}
["fieldset_Upload_File_2_File"]=>
array(5) {
["name"]=>
string(11) "59216BT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php8WyYCl"
["error"]=>
int(0)
["size"]=>
int(6766)
}
["fieldset_Upload_File_7_File"]=>
array(5) {
["name"]=>
string(9) "photo.JPG"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpSaTTJL"
["error"]=>
int(0)
["size"]=>
int(350358)
}
["fieldset_Upload_File_3_File"]=>
array(5) {
["name"]=>
string(11) "59216CT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phpyVd2Qh"
["error"]=>
int(0)
["size"]=>
int(8024)
}
["fieldset_Upload_File_8_File"]=>
array(5) {
["name"]=>
string(38) "Viscera Film Festival IMG_7403 4x6.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php2QTV2N"
["error"]=>
int(0)
["size"]=>
int(43244)
}
["fieldset_Upload_File_4_File"]=>
array(5) {
["name"]=>
string(11) "59216DT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php3atq2k"
["error"]=>
int(0)
["size"]=>
int(6942)
}
["fieldset_Upload_File_9_File"]=>
array(5) {
["name"]=>
string(11) "59216AT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phph0wo7R"
["error"]=>
int(0)
["size"]=>
int(7139)
}
["fieldset_Upload_File_5_File"]=>
array(5) {
["name"]=>
string(12) "IMG_0766.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/php3GyYhp"
["error"]=>
int(0)
["size"]=>
int(2164307)
}
["fieldset_Upload_File_10"]=>
array(5) {
["name"]=>
string(11) "59216BT.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(18) "/var/tmp/phptvCGEx"
["error"]=>
int(0)
["size"]=>
int(6766)
}
}

Attached Files
upload.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the file you attached still has the same probelm in it

<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Default_submit"]) || isset($_POST["Default_submit_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "fieldset_File_1_File", "2", "[NewFileName]_[Increment]", "false", $WA_UploadResult1_Params);
}
?>

is referancing:
fieldset_File_1_File


but the file field is named fieldset_Upload_File_1_File:
<input name="fieldset_Upload_File_1_File" type="file" id="fieldset_Upload_File_1_File" size="30" tabindex="1">

Sign in to reply to this post

balexander389215

I see what you mean now, and that did the trick, thank you very much. I had used the wizard to create the upload page and that was the way it did it, and I just assumed that was the way it was meant to be. I appreciate your very quick help with this.

Brian

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...