close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

FileUpload with mysqli insert

Thread began 2/04/2015 10:07 pm by localidiot | Last modified 2/05/2015 12:22 pm by Jason Byrnes | 629 views | 3 replies |

localidiot

FileUpload with mysqli insert

When I use serverFileName to return the value of the filename for insertion into the database, the file gets ulpoaded and forced to lower case, however the value of the filename string keeps the case of the filename from the client.

Sign in to reply to this post

Ray BorduinWebAssist

That doesn't usually happen... but to account for it you can use strtolower() around the file name reference to force it to all lower case when being inserted to the database as well.

Sign in to reply to this post

localidiot

It seems to be an even stranger issue. At the moment I am uploading files that are getting renamed, however they are not being uploaded to the absolute server path that is specified for the upload. However it is renaming the file, which indicates that the file is being uploaded somewhere on the server and seeing that it already exists, incrementing the filename by one.

i know it sounds lame, but i dont know where these files are being uploaded. maybe off the root of the entire servers folder.

Ok, ive found my issue and it seems as though I can not specify the full server path as the upload directory:

"/home/username/subhtmlfolder/"

Can I not reference the by absolute path for the upload directory string?

Sign in to reply to this post

Jason ByrnesWebAssist

no, you cannot reference the absolute path for the upload folder, you should use the relative path.

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