close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Upload naming

Thread began 1/04/2013 11:29 am by john70964 | Last modified 1/05/2013 11:19 am by john70964 | 473 views | 8 replies |

john70964

File Upload naming

When Creating file uploads I wonder if it is possible to place a prefix such as images/[Filename]
Would seem to keep it very simple to recover the image and exclude the need for views and concatenates.
I am attaching an image which may explain this better than me!
Many thanks

John

Sign in to reply to this post

Jason ByrnesWebAssist

sure, it is possible to store the path along with the file name in the database.

in the insert or update record behavior, select the column that stores the uploaded file name, and enter the path in front of the code for the server file name binding:
images/<server file name binding code>

Sign in to reply to this post

john70964

Thanks Jason

Cant think what happened to my image but here it is again

Sign in to reply to this post

Jason ByrnesWebAssist

this is not done in the image upload behavior.

it is done in the insert or update record behavior that saves the image name to the database.

Sign in to reply to this post

john70964

Thanks Jason
I have data being entered on page 1.

After the data is entered a second page is used to upload up to 10 images.
I would prefer to keep 2 pages if possible but the upload page does not use an insert record behaviour.
Is it possible to use the image submitted method?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to update the record that was created by the first page to stpre the images to the table.

Sign in to reply to this post

john70964

Re Above:
"in the insert or update record behavior, select the column that stores the uploaded file name, and enter the path in front of the code for the server file name binding:
images/<server file name binding code."
I cant see where to do this in the wizard.
Please see image

Or perhaps it is carried out here.
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "BoatImages/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "4",
'ResizeWidth' => "500",
'ResizeHeight' => "500",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End

Sign in to reply to this post

Jason ByrnesWebAssist

you cannot use the DW Insert record behavior with file upload, you can only use the Data Assist behaviors

Sign in to reply to this post

john70964

Thanks Jason

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