|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
cffile upload/rename
Here I'm having a problem.
I need to upload .html file only to a directory [FONT=Verdana]undefined and It should be named all the time policies.html, even anybody mistakenly uploaded htm/html file in some other name. anyhelp?? |
|
#2
|
|||
|
|||
|
Try this ...
Code on the upload form. Must use Enctype=Multipart/Form-data <form enctype="Multipart/form-data" action="upload_action.cfm" method="post"> File to upload<br> <input type="file" name="uploadFile"> <br> <input type="submit" value="Upload File"> </form> Code on the action page <cffile action="upload" fileField="UploadFile" destination="D:\yourPath\" nameconflict="overwrite"> <cffile action="move" source="D:\yourPath\#cffile.serverfile#" destination="D:\yourPath\policies.html"> Might work |
|
#3
|
|||
|
|||
|
yeah I got it....
yes It solves my problem and Thanks for your time and help.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cffile upload/rename |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|