Welcome Guest, Not a member yet? Register   Sign In
Use Upload class and insert the name of filein a DB.
#1

[eluser]masentinel900[/eluser]
Hello everybody.

In this moment I'm doing a upload form which has two text field for may upload the form. The name of the file and a description brief and last the file field.

All goes perfect, The form works Ok, the insert function works Ok.

The only that I can't get is insert the real name of the file in my DB.

I mean the real name is like the origin name. Without modifications.

Some Idea?
Please leave it here.
#2

[eluser]skunkbad[/eluser]
You should set the file_name preference, as referenced in the CodeIgniter user guide:

http://ellislab.com/codeigniter/user-gui...ading.html
#3

[eluser]masentinel900[/eluser]
Thanks by to reply in this post.

Yes I know perfectly about this preference, But I don't know if this preference will works with need.

Really I need get the origin name of the file. I know that I could to do this:

Code:
$config['file_name'] = "The_name_file.pdf";

But the name of the file will be this. But I need that the name of the file to be origin name, And so I need get for may to insert in a DB.

Namely I need to get the root name without modifications for may insert it in a DB.

The Insert process there not problem because already know it, What it I don't know if get the root name with their type format.




Theme © iAndrew 2016 - Forum software by © MyBB