Jump to content

retrieving a filename from a filefield form element


dave_m123

Recommended Posts

Hi all,

 

I'm trying to retrieve a filename from a file i select using a fieldfield. I'm unable to upload the file to my ftp server due to stupid limitations from my server provider.  So I am uploading the file using a standard ftp client software and then selecting the file of my harddrive to associate with an entry in a database.

 

The problem is everytime I select a file and click on Submit, PHP seems to temporarily upload the file before retrieving the filename. So if this is a big file it can take a while when it should be a near instant process to take the path of the filename and remove everything but the filename+extension.

 

Is there anyway of retrieving the filename in a quicker way than the way it is doing it at the moment?

 

Thanks for any help given.

Dave

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.