image upload with Farcry 6.2

13 views
Skip to first unread message

AJ Mercer

unread,
Oct 11, 2011, 10:42:51 PM10/11/11
to farcr...@googlegroups.com
I am having problems uploading images with Farcry 6.2 on Railo 3.3 on Ubuntu
and was wondering if anyone on bleeding edge (trunk) can confirm if it works for them.

File (pdf) upload is working fine, so I think file permissions is not the issue.

I can see my uploaded image in
    /images/dmImage/SourceImage/

But the failing code is looking in
    /images/dmImage/StandardImage/



this is the offending line [ /farcry/core/packages/formtools/image.cfc GenerateImage() ]

<!--- Workaround for missing 'mode' attribute in the <cfimage> tag :: Set UNIX file rights to 'user:group' --->
<cffile action="rename" source="#imageDestination#" destination="#imageDestination#" mode="664" />


--

AJ Mercer
<webonix:net strength="Industrial" /> | <webonix:org community="Open" />
http://twitter.com/webonix

Justin Carter

unread,
Oct 12, 2011, 12:32:35 AM10/12/11
to farcry-dev
Hi AJ,

We ran into this issue overnight as well, it appears to be a
regression in Railo 3.3.1.000 (which they've already fixed but not
released in a new stable build as yet):
https://issues.jboss.org/browse/RAILO-1552

However you can work around it by changing lines 1864 and 1881 of
image.cfc to:

<cfset FileSetAccessMode(imageDestination, "664")>

Not sure if that change will be committed to core yet - it probably
should be since it's purpose is clearer :)

cheers,
Justin


On Oct 12, 1:42 pm, AJ Mercer <ajmer...@gmail.com> wrote:
> I am having problems uploading images with Farcry 6.2 on Railo 3.3 on Ubuntu
> and was wondering if anyone on bleeding edge (trunk) can confirm if it works
> for them.
>
> File (pdf) upload is working fine, so I think file permissions is not the
> issue.
>
> I can see my uploaded image in
>     /images/dmImage/SourceImage/
>
> But the failing code is looking in
>     /images/dmImage/StandardImage/
>
> this is the offending line [ /farcry/core/packages/formtools/image.cfc
> GenerateImage() ]
>
> <!--- Workaround for missing 'mode' attribute in the <cfimage> tag :: Set
> UNIX file rights to 'user:group' --->
> <cffile action="rename" source="#imageDestination#"
> destination="#imageDestination#" mode="664" />
>
> --
>
> *AJ Mercer*
> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
> community="Open" /> <http://webonix.org>http://twitter.com/webonix
> Railo Community Manager <http://www.getrailo.org/index.cfm/community/team/>

AJ Mercer

unread,
Oct 12, 2011, 1:33:16 AM10/12/11
to farcr...@googlegroups.com
Awesome - thanks Justin, that did the trick :-)

The AJAX UI is super slick in 6.2



--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry



--

AJ Mercer
<webonix:net strength="Industrial" /> | <webonix:org community="Open" />
http://twitter.com/webonix
Reply all
Reply to author
Forward
0 new messages