Microsoft
Software
Hardware
Network
Question : URGENT: Need help with cfhttp file upload...
Hi,
How do I programmatically pass the file (from the "uploadForm") that I'm trying to upload into the "file" attribute of <cfhttpparam type="FILE"...>? (see code below)
<form action="<cfoutput>#CGI.SCR
IPT_NAME#<
/cfoutput>
" enctype="multipart/form-da
ta" method="post" name="uploadForm" id="uploadForm">
Please specify the file to upload by browsing to it: <input type="file" name="file2Upload" size="40" /><br />
<input type="submit" value="Upload" name="btnUpload" id="btnUpload" />
</form>
<cfif structKeyExists(form,"btnU
pload") AND len(trim(form.file2Upload)
)>
<cfhttp method="post" result="Response" url="
https://www.someurl.c
om/folder1
/folder2/
"
multipart="Yes" resolveURL="Yes" throwOnError="Yes">
<cfhttpparam type="FormField" name="MyField1" value="some hardcoded value 1">
<cfhttpparam type="FormField" name="MyField2" value="some hardcoded value 2">
<cfhttpparam type="FormField" name="MyField3" value="some hardcoded value 3">
<cfhttpparam type="FormField" name="MyField4" value="some hardcoded value 4">
<cfhttpparam type="FormField" name="MyField5" value="some hardcoded value 5">
<cfhttpparam type="FILE" name="Filename" file=""> <!--- How do I programmatically pass the file (from the "uploadForm" above) that I'm trying to upload into the "file" attribute here? --->
</cfhttp>
<cfoutput>Response.filecon
tent: #Response.filecontent#</cf
output>
</cfif>
Many thanks in advance.
Answer : URGENT: Need help with cfhttp file upload...
This is probably a dredded corrupt Outlook profile. Have you tried re-creating your Outlook profile from the mail applet in the control panel?
Random Solutions
Outlook2007/ Exchange: Need password to connect
Can't send emails (Vista Business, United Kingdom, Demon Mailbox/Demon Broadband)
Import text file - definition (field name, delimited, lng) based on a table
PHP: import several RSS feeds into MySQL
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
MySQL Rows to Columns by Group
Inserting Rows in Excel with VBA
Can I add multi-millions of records to SQL database while replication is on? Will it work?
How do i factory reset netvanta 1524st switch from the cli command line?
lower lights