rip747/Uploadable-Files — Issue #5: issue with static destination
Author: Renand
Created: 2011-10-10 13:18:48+00:00
State: open

Hi tony, tanks for your Help, When I update the plugin to 0.5 I find a new message :

Element C:\Inetpub\wwwroot\SITES\adminOnWheels\files\temp\ is undefined in a Java object of type class coldfusion.runtime.TemplateProxy.

The error occurred in C:\Inetpub\wwwroot\SITES\adminOnWheels\plugins\uploadablefiles\uploadablefiles.cfc: line 193
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\plugins\uploadablefiles\uploadablefiles.cfc: line 77
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\global\cfml.cfm: line 174
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\model\callbacks.cfm: line 291
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\model\crud.cfm: line 830
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\global\cfml.cfm: line 174
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\model\transactions.cfm: line 53
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\model\crud.cfm: line 816
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\model\crud.cfm: line 896
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\controllers\Tissues.cfc: line 225
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\global\cfml.cfm: line 174
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\controller\processing.cfm: line 85
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\controller\processing.cfm: line 60
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\dispatch\request.cfm: line 166
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\index.cfm: line 1
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\rewrite.cfm: line 1
Called from C:\Inetpub\wwwroot\SITES\adminOnWheels\wheels\events\onrequest.cfm: line 1

I will try to understand why, but my first question is :
Actually I use a temp folder defined in my model like this : destination=expandPath(application.folders.uploadTemp) // /files/temp/
And I move my file with atfersave() medhod in other destination, like this one /images/CONTROLLER_NAME/OBJECT_ID/renamed_file_name.jpg (UUID in fact)

I saw in plugin code (_getUFProperty) a way to defined a dynamic destination folder, but I don't know if it's possible to use it if I want to use ID in path.

Thanks