close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File upload problem

Thread began 6/10/2010 5:24 pm by montlig399082 | Last modified 6/15/2010 6:05 pm by Eric Mittman | 1815 views | 5 replies |

montlig399082

File upload problem

Hi all,

I have a simple page with a one form and one file field, applied the upload files behavior with the default settings, but the upload folder field always will be "/" (in the parameters array is: 'UploadFolder' => "",). Is it releated to the site root or the current file? What is the default file field for? I also inserted a debug info dynamic text to see what is the problem, this is the result after the submit:

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

Any ideas?

Thx!
G

Sign in to reply to this post

Eric Mittman

The path to the folder is a relative one, you can use a site relative path with a slash in it though if you need to. The default file field is for a default file, that is a file that will be used in place of the uploaded file if there is none or it fails.

The debug info is telling you that the file upload did not occur. What have you set your trigger to be and how are you testing the page? Please post back with this info and the page in question so we can take a look.

Sign in to reply to this post

montlig399082

I attached the configuration.

Link: kep_new.php

The upload folder is now "/", so the current folder. Perrmissons are 777 now.

Sign in to reply to this post

Eric Mittman

Do you have error reporting enabled on your server? If not add in these lines of code to the top of the page:

php:
<?php 

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



With this on your page it should let you know if some other error is occurring. It seems like there might be an error occurring on the script level, maybe a permissions issue for moving the uploaded file. If you have the folder set to 777 then there should not be any permissions issue with that folder at least. Please post back with the info after adding this to your page and also include the page in question in a zip archive so that we can examine it.

Sign in to reply to this post

montlig399082

Thanks for your help, its almost working now...

If I put the same file to the root of the site and change the links
(<?php require_once("../webassist/file_manipulation/helperphp.php"); ?> and the upload folder), its working fine...
Before that, the file was in the admin folder, the require_once link as above.

I have tried to copy the file_manipulation folder to the admin folder, changed the links, but not working.

Any idea?

Sign in to reply to this post

Eric Mittman

It sounds like you have made some progress on this. It should not matter where you are applying the upload, so long as the paths to the folders are correct it should work out. You should be able to use the same page as you get a successful result with in your root in the admin folder, then just update the paths so they are pointing to the files correctly.

The include code with the ../ in the front of it is looking the the parent directory. So if your admin folder is in the root of your site and so is the webassist folder the paths for the includes in the pages that are in the admin folder should have the ../ in them. So long as the files are in the location specified it should work for you.

Please post back with more details about what you are experiencing with this after making the updates to the paths and uploading the folders. If you continue to have troubles with this let us know and I will open a ticket for you.

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