cffile not accepting image


this value of file coming form.thumbnailpic
image load "mart.jpg"
<!--- directory --->
<cfset postfile2 ="f:\site\sponsors\1\images\ ">
the image not being uploaded directory. see code below

<cftry>
<cftry>
<cffile action="upload"
filefield="thumbnailpic"
destination="#postfile2#"
accept="image/*"
nameconflict="overwrite">
<!--- catch error.--->
<cfcatch type="any">
<cfset erroroccured = #erroroccured# &","& "thumbnailpic not saved">
</cfcatch>
</cftry>"

are errors being thrown or image file not appear?

if there error messages, have checked <input type="file"...>
tag? filters can assigned in tag type of files can or
can not uploaded there well.


umuayo wrote:
> value of file coming form.thumbnailpic
> image load "mart.jpg"
> <!--- directory --->
> <cfset postfile2 ="f:\site\sponsors\1\images\ ">
> image not being uploaded directory. see code below
>
> <cftry>
> <cftry>
> <cffile action="upload"
> filefield="thumbnailpic"
> destination="#postfile2#"
> accept="image/*"
> nameconflict="overwrite">
> <!--- catch error.--->
> <cfcatch type="any">
> <cfset erroroccured = #erroroccured# &","& "thumbnailpic not saved">
> </cfcatch>
> </cftry>"
>


More discussions in Getting Started


adobe

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support