|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
File upload thing...
Hi,
I am using some PHP code which would upload a certain file from the users computer to the server. Everything's working fine except one thing. This is what the HTML control code looks like this: <input type="file" name="file" size="20"> When i print the 'file' value on the submit page this is what i get 'C:\apache\php\php4272.TMP'. Now, this keeps changing and i never get the correct file name. Can someone tell me anyway i can extract the correct filename which was uploaded? Thanks Neville (PS: The file is being uploaded exactly where i want it, everything releated to the uploading seems to be working fine!) |
|
#2
|
|||
|
|||
|
The original file name, if it's what you're looking for, is stored in $_FILES['file']['name']
|
|
#3
|
||||
|
||||
|
Please read Handling File uploads
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > File upload thing... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|