close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

no luck the file does not upload

Thread began 10/20/2009 9:28 am by danw391573 | Last modified 10/20/2009 2:38 pm by Jason Byrnes | 3585 views | 10 replies |

danw391573

no luck the file does not upload

I followed the step by step guide on Creating a digital File upload in Digital File Pro 2, no luck the file does not upload to server. When making a path to Upload folder field the fold is in the root with all of the files, so I put the folder name is that correct ?

Sign in to reply to this post

anonymous

Hi there,

Did you remember to set the permissions of your folder on the server?

Also, if the permissions are correct... could you post the code here so we can see what is going on?

Thanks,

Brian

Sign in to reply to this post

danw391573

Yes I did set the permissions

Yes, I did set the permissions of the folder I want to upload to on the server.

I have attached the file.

Thanks for the help

Attached Files
test.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

To trouble shoot, add the following code at line 1:

php:
<?php

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





the go to the bindings tab and expand the WA Uploaded Files Global Status group and bind the debug info to the page.

Post back the debug info results after performing another upload test.

Sign in to reply to this post

danw391573

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

Sign in to reply to this post

Jason ByrnesWebAssist

This means the upload is not being triggered

It may be that the host has disabled the $_SERVER["HTTP_REFERER"] variable which is causing the Currant Page Submit trigger to fail.

Try using the any form post trigger instead.

Sign in to reply to this post

danw391573

This what I get now still not uploading

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

Sign in to reply to this post

Jason ByrnesWebAssist

Your page has two separate forms:

html:
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<label>Upload File
<input type="file" name="Upload" id="Upload" />
</label>
</form>
<form id="form2" name="form2" method="post" action="">
<label>
<input type="submit" name="submit " id="submit " value="Submit" />
</label>
</form>



The file element is in one form, the submit button is in another.

When you click the submit button, it will only post elements that are a member of that. you need to combine the two forms into one:

html:
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<label>Upload File
<input type="file" name="Upload" id="Upload" />
</label><br />
<label>
<input type="submit" name="submit " id="submit " value="Submit" />
</label>
</form>
Sign in to reply to this post

danw391573

Thank You!

Thank You Thank You Thank You it works now :)

Sign in to reply to this post

danw391573

Will not upload video files

Will not upload video files, why?
I don't have it set to images only.

Sign in to reply to this post
loading

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...