[thesite] [BUG] Author pic deleting?

Seb seb at members.evolt.org
Mon Jan 14 12:00:27 CST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>in order to know that something needs to be uploaded, i'm simply checking
>the trimmed length of the file upload field's value.  if it's greater than 0
>i delete the existing pic and upload the new one (or try, it seems).
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > I was actually never able to solve it, just thought it
> > was worth mentioning.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>i've never been able to solve it either.  it's very frustrating.

Some suggestions:

1) Checkbox to say a new image is present
2) An onchange() event for the file input box that sets a hidden field 
variable, then check for that value
3) Dunno if CF allows this, or if it's already in place, but catch the file 
upload and check for length > 0 of the actual file, and only update the DB 
when true (take the file upload event out of the workflow for the profile 
update if necessary)

The CMS system that I work with (BroadVision) consistently has the same 
problem, and I generally employ of the hacks above to get around it, 
depending on what the customer is willing to allow.

Seb.


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPEMdAL2V451Vxr52EQKa5wCeMhdP46Ktix+EP2jF8SON0ll4sx8AniOX
bEoRY1udcNgOWYGeRC457RSV
=cMfD
-----END PGP SIGNATURE-----





More information about the thesite mailing list