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 upload not working

Thread began 11/09/2021 9:07 pm by randyrie405335 | Last modified 11/10/2021 9:06 pm by Ray Borduin | 17 views | 3 replies |

randyrie405335

file upload not working

I get these warnings when I try to upload a file to my server:

Warning: move_uploaded_file(/Library/WebServer/Documents/IndyPlacesc/includes/../docs/4f5f0cad0eaef32d7cf2621d00d3943a_tmp.pdf): failed to open stream: Permission denied in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 157

Warning: move_uploaded_file(): Unable to move '/private/var/tmp/phpc1QqfD' to '/Library/WebServer/Documents/IndyPlacesc/includes/../docs/4f5f0cad0eaef32d7cf2621d00d3943a_tmp.pdf' in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 157

Warning: copy(/Library/WebServer/Documents/IndyPlacesc/includes/../docs/4f5f0cad0eaef32d7cf2621d00d3943a_tmp.pdf): failed to open stream: No such file or directory in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 161

What is causing these and how doI fix this?

(I'm attaching the webapge and the helperphp.php WebAssist support file)

Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access and a url to reproduce? It looks like a folder permissions issue, but it could be a path issue in general. It looks like the code isn't handling the ../ in the upload path properly. You could probably fix it by just using a root relative path on line 14 like:

'UploadFolder' => "/docs/",

But you may have to adjust the permissions on the docs folder to give it read/write privileges.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

file upload not working

I tried your suggested path change (/docs/) but the file does NOT upload and I still get these warnings:

Warning: mkdir(): Permission denied in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 31

Warning: mkdir(): No such file or directory in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 31

Warning: move_uploaded_file(/Library/WebServer/Documents/docs/,/15601b4b0b3d76586c842dfc262f7c12_tmp.pdf): failed to open stream: No such file or directory in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 157

Warning: move_uploaded_file(): Unable to move '/private/var/tmp/phpmNK4sa' to '/Library/WebServer/Documents/docs/,/15601b4b0b3d76586c842dfc262f7c12_tmp.pdf' in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 157

Warning: copy(/Library/WebServer/Documents/docs/,/15601b4b0b3d76586c842dfc262f7c12_tmp.pdf): failed to open stream: No such file or directory in /Library/WebServer/Documents/IndyPlacesc/webassist/file_manipulation/helperphp.php on line 161\

My upload folder 'docs' and all of its file have 777 file permissions assigned. I'm including the FTP acces and login credentials in the private message.

Sign in to reply to this post

Ray BorduinWebAssist

You didn't have the webassist/file_manipulation folder on the server.... I uploaded my local version and the upload seems to work.

Maybe you had an older version of that file and that was causing the issue? Reinstall the latest version of DataBridge to make sure that those files are up to date, or just download the one I uploaded.

Sign in to reply to this post
Did this help? Tips are appreciated...

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