close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File not uploading

Thread began 6/11/2012 2:59 pm by rgolab68503 | Last modified 6/11/2012 4:57 pm by rgolab68503 | 993 views | 5 replies |

rgolab68503

File not uploading

I have been going through the forums to see if I can get my file to upload and have tried several things to try to make it work. I have even entered in the error debugging code, which I put into my Admin_Insert.php page. This is the results I have when I entered that code:

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
WA_UploadResult1_2:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1

I still can't get the file to upload.

Just to be sure I am clear on what I am trying to do is I am simply asking it to get a file which I browse to. It them uploads it to two different folders at two different sizes however retains the original name of the file which is the product code.

Any ideas where I have gone wrong?

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

Jason ByrnesWebAssist

to make sure it is not a php error causing the problem, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

rgolab68503

File not uploading

This is what is comming up.


Notice: A session had already been started - ignoring session_start() in /var/www/html/toyo_support_site/support/POP/adminT/Admin_Insert.php on line 223
ShareThis

Sign in to reply to this post

rgolab68503

file not uploading

To try and isolate this I created another simple file that simply is called uploads.php. It goes nowhere but does have the same upload settings. I also added the error reporting code to the top of this page. This is what comes up.

Warning: move_uploaded_file(/var/www/html/toyo_support_site/support/POP/adminT/../Images/4dc3ac702b03b8f44d46c12b879df1ba_tmp.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/html/toyo_support_site/webassist/file_manipulation/helperphp.php on line 94

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpBvDRbF' to '/var/www/html/toyo_support_site/support/POP/adminT/../Images/4dc3ac702b03b8f44d46c12b879df1ba_tmp.jpg' in /var/www/html/toyo_support_site/webassist/file_manipulation/helperphp.php on line 94

Warning: copy(/var/www/html/toyo_support_site/support/POP/adminT/../Images/4dc3ac702b03b8f44d46c12b879df1ba_tmp.jpg) [function.copy]: failed to open stream: No such file or directory in /var/www/html/toyo_support_site/webassist/file_manipulation/helperphp.php on line 96


The directory is already there so it deosn't need to create it.

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

Jason ByrnesWebAssist

the error means that the upload directory /Images/, does not have sufficient write privileges for the file to be saved there. You will need to edit the privilege level of the /Images/ folder to allow write access.

Sign in to reply to this post

rgolab68503

Thanks I'll have to talk to my service provider to adjust this.

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