I'm aware that there is a bug where uploaded files longer than 31
characters have their names truncated when uploaded via Active4D. To deal
with this limitation I'm thinking of ways to either warn the user at the
browser or possibly pass the long filename as a hidden input field.
Does anyone here have any experience with javascript and the <input
type="file" ... > element that could help in this area?
Some options:
1) examine the file name of the uploaded file, alert the user if it is too
long and possibly offer a mechanism to enter an alternate shorter name.
or even better
2) copy the short name of the uploaded to a hidden text field and post it
with the form.
With option 2, I'm thinking that the server side processing could look at
the file name after upload, compare it to the hidden field name and rename
the file to its intended name.
Would option 2 not work because 4D won't allow me to rename a file to one
with a greater then 31 character name. If that limitation exists could it
be worked around by using a shell script instead of 4D's file commands.
Thanks,
Brad Perkins
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/