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

Upload working, but sending to wrong directory.

Thread began 5/05/2010 3:31 pm by tom92909 | Last modified 5/13/2010 4:35 pm by Eric Mittman | 1530 views | 10 replies |

tom92909Beta Tester

Upload working, but sending to wrong directory.

I've got an upload form working and the file is getting saved on the server, but the process isn't saving the file in the defined directory.

php:
'UploadFolder' => "../Gallery".$row_getGalleries['gallery_id']  ."/",



I've tried this as well...

php:
'UploadFolder' => "../".$row_getGalleries['directory']  ."/",



Desired directory example ../Gallery3/

Instead of actually uploading to this directory, the process sends it to ../
totally missing the directory stated.

Any suggestions?

Sign in to reply to this post

Eric Mittman

Have you tried using a site relative path with a slash in front of it like this:

php:
'UploadFolder' => "/Gallery".$row_getGalleries['gallery_id']  ."/",



You would of course need to ensure that this folder with the gallery id appended exists in the site before you could upload to it. Are the files being uploaded to the root of your site?

Sign in to reply to this post

tom92909Beta Tester

I tried what you suggested and nothing uploaded at all...

I tried the following and a ../Gallery directory was created and the files were stored in this new directory.

php:
'UploadFolder' => "../Gallery".$row_getGalleries['gallery_id']  ."/",



Progress I guess...but the problem is the directory creation completely omitted the trailing gallery_id number. I need the script to create a directory that includes the ID number from the query as part of the new directory.

The directory can either be created by the upload or I can create the directory prior to the upload, it makes no difference to me. I can perform which ever action is required, I just can't seem to get the upload to function the way the code is written.

Sign in to reply to this post

tom92909Beta Tester

Checking back in today, just looking for some additional advice, the suggestion from yesterday was not helpful.

Sign in to reply to this post

Eric Mittman

I opened a ticket for you so we can check this out further. To update the ticket login and visit your support history.

Sign in to reply to this post

tom92909Beta Tester

Thanks for the ticket. I have attached some screenshots for you to better explain what's going on.
I included a copy of the galleryupload.php in my original message thread.

Sign in to reply to this post

tom92909Beta Tester

4:15pm Friday checking in on my ticket.

Sign in to reply to this post

Eric Mittman

It looks like you have not logged in and updated the ticket with the requested info. Please login and update the ticket so that we can proceed.

supporthistory.php

Sign in to reply to this post

tom92909Beta Tester

Hopefully, I've now updated the needed data in the ticket.

Sign in to reply to this post

Eric Mittman

Thanks for working this out with me in the ticket, I have added some more info and requested more in the ticket. You can just update it there, I will be looking for the response when it is made.

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