Dear Leong,

Thanks you so much,
Thanks. :))))

I will try this and let you know,


Best regards,

Phim.


-----Original Message-----
From: Leong Yew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 1:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Need Suggestion : About Uploading files


OK here's a simple example.

You'll need two files. Suppose these two files are on http://www.domain.com
and they are formpage.htm and actionpage.cfm. And suppose also that the
literal path on which the file is to be saved is d:\inetpub\files\

In formpage.htm you should have this code

<form action="http://www.domain.com/actionpage.cfm" method="post"
enctype="multi-part/form-data">
<input type="file" name="filename">
<input type="submit">
</form>

In actionpage.cfm include this:

<cffile action="upload" filefield="filename"
destination="d:\inetpub\files\">

That's all there is to it. This is a very limited example. You should
consult your CF documentation for more info on the attributes.

I wasn't sure what info you needed, so I hope I haven't been too
presumptious in giving these instructions.

Leong

-----Original Message-----
From: Phim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 3:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Need Suggestion : About Uploading files


Thanks you very much :)
I am in NT , so How i should do next.

Phim.

-----Original Message-----
From: Leong Yew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 12:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Need Suggestion : About Uploading files


Hi,

I take it you're looking to transfer a file from your computer to the
server? If this is the case there's no need to install any additional
components. CF already has a built-in tag called CFFILE.

All you have to do is write a forms page with the input-file html tag and
send that to a CF action page that uses CFFILE. The following is from the CF
4.5 documentation:

<CFFILE ACTION="Upload"
    FILEFIELD="formfield"
    DESTINATION="full_path_name"
    NAMECONFLICT="behavior"
    ACCEPT="mime_type/file_type"
    MODE="permission"
    ATTRIBUTES="file_attributes">

Use the MODE attribute when you're using UNIX, disregard if you're on NT.

Hope this helps

Leong

-----Original Message-----
From: Phim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 1:44 PM
To: [EMAIL PROTECTED]
Subject: Need Suggestion : About Uploading files


Hi ,

I am about new starting in Cold fusion and I have project development by
Cold Fusion.
My project need 1 page that can download files(picture file) from my
computer to locate at server.

Can you please give me suggesstion ,what object do I need to install at
server ?
Where the place that I can found help about using that object or develop
this page .


Best regards.

Chiraporn Bualert ( Phim )
Software Developer

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to