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

file not uploading - universal email & dataassist

Thread began 6/10/2014 4:26 pm by Kumel | Last modified 6/17/2014 11:11 am by Jason Byrnes | 2283 views | 30 replies |

Kumel

file not uploading - universal email & dataassist

I had created data assist pages. All seemed to be fine. But i tried adding file upload it. File isn't uploading in server(folder) neither is data entering in mysql DB.

I worked as per Tutorial provided. But still i m not working. Please help me out. form is already having multipart/Form-data.
Regards

Sign in to reply to this post

Jason ByrnesWebAssist

I'm assuming it's the insert page that is having the trouble?

to troubleshoot:

add the following code at line 1:

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



remove the redirect from the isert behavior by changing:

$WA_redirectURL = "blog_Detail.php";



to:

$WA_redirectURL = "";




then in the body, add the following code to write the file upload debug info and the insert SQL:

<?php if (isset($_POST["Insert_x"])) { ?>
<?php echo($WA_Sql); ?>
<?php echo WA_DFP_AllUploadsDebug(); ?>
<?php } ?>



post back the result after trying the insert again.

Sign in to reply to this post

Kumel

received this error :



Warning: move_uploaded_file(images/blog//5d3d48b06014a1447fe3a5318bde6d77_tmp.jpg): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/nextgen/webassist/file_manipulation/helperphp.php on line 94

Warning: move_uploaded_file(): Unable to move '/Applications/XAMPP/xamppfiles/temp/phpC15IsZ' to 'images/blog//5d3d48b06014a1447fe3a5318bde6d77_tmp.jpg' in /Applications/XAMPP/xamppfiles/htdocs/nextgen/webassist/file_manipulation/helperphp.php on line 94

Warning: copy(images/blog//5d3d48b06014a1447fe3a5318bde6d77_tmp.jpg): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/nextgen/webassist/file_manipulation/helperphp.php on line 96
INSERT INTO `blog` (`id`,`title`,`short_description`,`long_description`,`img`,`date`,`month`,`name`) VALUES (NULL,'','','','','1','Jan','')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

Permission denied in /Applications/XAMPP/xamppfiles/htdocs/nextgen/webassist/file_manipulation/helperphp.php on line 94


this means that the upload folder does not have the proper permissions to allow an uploaded file to be saved

edit the permissions for the upload folder to 777

Sign in to reply to this post

Kumel

So how do i do it exactly?
file is not uploaded as well as data also not inserted of img field.

Sign in to reply to this post

Kumel

I tried changing folder settings to read & write. Now everything works. But how to do it from web end?

Sign in to reply to this post

Jason ByrnesWebAssist

use file zilla or another ftp program to access the site files.

in file zilla, you can right click on a folder and select File Permissions to change permissions for the folder.

i understand that it is not uploading the file or saving the file name to the database, that is because the permissions for the upload folder are not allowing the file to be saved.

Sign in to reply to this post

Kumel

well ok. thanks a lot.
by the way i need to change above settings to :

$WA_redirectURL = "blog_Detail.php";

right?

cause i end up getting error. & i stay in same page. so

Sign in to reply to this post

Jason ByrnesWebAssist

after you fix the file permissions, you revert the changes, they where only for troubleshooting.

Sign in to reply to this post

Kumel

Thank You :)

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