close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

file upload case and lower case file name

Thread began 10/02/2012 2:02 am by Massimo | Last modified 10/08/2012 4:25 am by Massimo | 1838 views | 6 replies |

Massimo

file upload case and lower case file name

my customer image have a case file extension:

myimage.JPG

when I upload file from file field in my dB are stored lower case:

myimage.jpg

but in server it remains case

myimage.JPG

How I can solve? Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/file_manipulation/helperphp.php file, change the following line:

php:
$extension = isset($path_parts['extension']) ? $path_parts['extension'] : '';



to:

php:
$extension = isset($path_parts['extension']) ? strtolower($path_parts['extension']) : '';
Sign in to reply to this post

Massimo

I was confused. I was wrong example

I have:

MYimage.JPG

when I upload file from file field in my dB are stored same:

MYimage.JPG

but in server only file extension is stored lower case so:

MYimage.jpg

and I don't know if my customer use case or lower case extension

How I can solve? Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of your page please?

the server file name should use the same case as the file created on the server.

Sign in to reply to this post

Massimo

this is the file

Sign in to reply to this post

Jason ByrnesWebAssist

in the insert record behavior, you have bound the image column to the image form element.

In the bindings panel, there is a collection for WA Uploaded File (image), expand this collection and use the server file name binding instead.

Sign in to reply to this post

Massimo

thanks. Now work

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