[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Dreamweaver Developer Toolkit File Upload

Posted on 2009-04-30
5
Medium Priority
?
416 Views
Last Modified: 2012-05-06
Experts,

I have created a form using the Dreamweaver Developers Toolkit that will upload a file and insert a new record in a data table (PHP) .  One of the settings in the dialog box is to add the path for the uploaded files.  No problem with any of this, but I need to add the path to the file name during the insert so that the field in the database will accurately reflect the current location of the file.  It currently only inserts the file name.  Since this is a Dreamweaver extension and I am not a really good PHP coder, I don't really know what code to upload so if anyone has experience with the toolkit and has tackled this, I would be grateful for some help.
0
Comment
Question by:Quantum_Leaper
  • 3
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 24282110
Hi Quantum_Leaper,

Before we go any further:

http://www.adobe.com/products/dreamweaver/addt/

The ADDT is being discontinued, so support for it will be drying up.

>> No problem with any of this, but I need to add the path to the file name during the insert so that the field in the
>> database will accurately reflect the current location of the file.

Why?  If the path is static, you can easily build links without having to store the path in the table.  Also, the ADDT makes this extremely hard to do.
0
 

Author Comment

by:Quantum_Leaper
ID: 24284445
jason178

Thanks for the feedback on the ADDT.  

I think I get what you mean on the path.  I just added that to the image name variable selected from the database.  That was a good suggestion and certainly changed the way I will do these in the future.  As  right-brainier I don't often climb into the code but this was an easy fix. Thanks for the fresh perspective.

0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 2000 total points
ID: 24288484
>> Thanks for the fresh perspective.

You're welcome.  FWIW, if you use "plain" PHP to handle file uploads, the path becomes immediately available as a variable in the $_FILES array.  But the ADDT adds a layer of complexity to what is otherwise a simple task and trying to extract the path becomes overly complicated.
0
 

Author Closing Comment

by:Quantum_Leaper
ID: 31577278
jason1178:

Thanks for the additional information.  I will read up on the $_FILES array and learn how to use that for future forms.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 24288558
>> I will read up on the $_FILES array and learn how to use that for future forms.

Actually, I'm wrong.  You set the path manually in the PHP code even with plain vanilla upload scripts.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question