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

Error on upload

Thread began 9/29/2009 6:40 pm by gpac357497 | Last modified 10/02/2009 2:47 pm by Jason Byrnes | 2216 views | 6 replies |

gpac357497

Error on upload

I am getting the following error on file upload:

Warning: move_uploaded_file(/home/xxx/swf/MP1.swf) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/xxx/WA_DigitalFilePro/HelperPHP.php on line 145

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpLnjYHl' to '/home/xxx/swf/MP1.swf' in /home/xxx/WA_DigitalFilePro/HelperPHP.php on line 145

The target directory permission has been set to "0766"

I have been through the plethora of similiar issues which all say to set the permissions correctly - which I have. Not "xxx" is for security protection.

I am using Digital File Pro 1.1.3

Sign in to reply to this post

anonymous

Can you change the target directory permissions to either 0755 or 0777? I am not sure about your server, but those two are the only ones that work on mine.

Best regards,

Brian

Sign in to reply to this post

gpac357497

Thanks Brian,
Yes I have tried both. We use Cpanel on an ISP's server so it's easy to change settings. Elsewhere on the forum I read that php servers used a temporary area that they first loaded files to and I should set the priveledges there.

Note the error snippet "Unable to move '/tmp/phpLnjYHl' ". I also changed the settings on what I believe to be that tmp directory to no avail as well.

I have checked the documentation from WA and crawled the forum with know apparent fix.

I hope tht the support group at WA responds soon.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

line 145 is trying to delete the temporary file that was created in the temp directory. Try setting the permissions on the temp directory to 0766.


You can also try changing line 145 of the WA_DigitalFilePro/HelperPHP.php file from:

php:
unlink($attemptedServerFilePath);



to:

php:
chmod($attemptedServerFilePath, 0766);

unlink($attemptedServerFilePath);



It is possible that the server is configured in a way that would not allow you to modify permissions on the temp folder, if you are still getting the same error with the correct permissions, you may need to work with the host to resolve the problem.

Sign in to reply to this post

gpac357497

Hi Jason,
My line 145 reads:
if (move_uploaded_file($uploadedFile["tmp_name"] , $attemptedServerFilePath)) {

The line you referred to is line 142.

None the less I inserted the code that you suggested in front of line 142 and it made no difference (other than shiftingthe error to now line 146)

Here is the calling code on my page:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if(isset($_POST["_but2"])){
WA_DFP_UploadFile("WA_UploadResult2", "_upload2", "", "../../swf/", "[FileName]", "0", "[FileName]_[Increment]", "0", "false", "0", "0");
}
?>
<?php

More help please.

Sign in to reply to this post

gpac357497

Hi Jason,
Is there a next step here?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this with you further. to view and edit your support ticket, please log into your support history:
supporthistory.php

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