Welcome Guest, Not a member yet? Register   Sign In
Image uploading filename
#1

[eluser]travoltron[/eluser]
I put together a form to upload images, setting the filename manually, and also calling a model to insert a row in a table to reference that uploaded image later.

Everything is running smoothly as far as the upload is concerned, and the insert is going off without a hitch, my only question is that on the upload there is an underscore appended to the filename, just before the extension.

Example:
I upload image named: test.jpg.
I extract the .jpg, and append it to filename of: qwerty.unixtimestamp.jpg.

This is written to the DB, but the uploaded file looks like: qwerty.unixtimestamp_.jpg.

I'm running $config['remove_spaces'] = TRUE;

Any questions? I've got a workaround hack in place for now, but I'm curious to an answer.
#2

[eluser]LuckyFella73[/eluser]
Please post your upload code otherwise it's hard to say.




Theme © iAndrew 2016 - Forum software by © MyBB