On 8/10/10 1:50 PM, Mike Erickson wrote:
> Hey Gang
>
> Trying to figure out how to use the A4D file upload system. All SEEMS to be
> uploading, but I unable to copy the file to a "readable" directory
>
You mention readable. Is the target directory writable to the 4D
process?
> Using the following
>
> <%
> $size := get upload size("A4D_Upload")
> $filename:=get upload remote filename("A4D_Upload")
> copy upload("A4D_Upload";"/uploads/"+$filename)
> writebr("Error: "+String(A4D_Error))
> writebr("filename: "+$filename)
> %>
>
> Both $size and $filename are correct, but the "copy upload" command returns
> an error -120
>
> If I use, the following, I receive an error code -46
>
> copy upload("A4D_Upload";"/uploads/"+$filename)
How long is the path with the filename. 4D's weak filename handling
can still bite you here. It has been awhile since I did this, but I
recall that we had to make sure our total path with name was short
enough by assigning a temporary name. We then used the shell to
rename the file to its intended name.
Also what if you use "uploads"+$filename `No leading /
hth,
Brad
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/