On Oct 4, 2005, at 1:10 PM, Rick Hazey wrote:
On Oct 4, 2005, at 11:41 AM, Steve Alex wrote:
stuff...
A couple of things to note about your code:
$ab is referencing a4d_update. Shouldn't it be referencing a4d_upload?
You're right, that was a typo
Shouldn't get upload size use a text type? So it would be: get upload
size("a4d_upload")
The thing I was missing! Thank you. Should of known that the reference
was a collection key. One example in the manual would of cleared that
up.
Here's some code I wrote for uploads that may be of use to you. I had
problems until I used the get root function when copying the upload.
if($val_error=0)
create_keywords
if(count uploads = 1)
$ext := get upload extension("A4D_Upload")
if(($ext # ".a4d") & ($ext # ".a4p"))
$file_name := substring([person]last_name;1;17) +
"_" + string(session{"sr_recNum"};"00000")
$file_path := "files/" + $file_name + $ext
[person]file_path := $file_path
copy upload("A4D_Upload";get root + $file_path)
end if
end if
Warmest regards,
Rick Hazey
bitworx, inc.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/