Forums

This topic is locked

dynamic file field

Posted 13 Jul 2003 16:31:28
1
has voted
13 Jul 2003 16:31:28 Ric A posted:
Hello,
In the server behaviors there is a dynamic field for almost every form object except for the file field....and I need it.
I upload images with a file field but when i want to change the record but want to keep the image, the imagepath doens't show up in the file field, ergo: the file field is blank and when it's updated, the imagepath is gone. Dragging a dynamic text field to the file field isn't working. Is there a workaround or something?
Thanks!

Replies

Replied 14 Jul 2003 13:40:52
14 Jul 2003 13:40:52 Lee Diggins replied:
Hi

The File Field is very limited as to what you can do with it by design. The client's browser is 'sandboxed' meaning you cannot get to the client file system without permission from the client.

One of the restrictions applied is you cannot populate the file field with a preset value, i.e. a database value. To display the image field data on your page use a dynamic textfield or dynamic text.

When updating a record, do you change the image?

Back to the file field, you need to write code that will not update the image field data column in your database of the file field is empty.

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 14 Jul 2003 13:51:15
14 Jul 2003 13:51:15 Ric A replied:
I tried to build a condition where if the image field is empty don't insert anything, but it don't work.
Can I send you my page?
Replied 14 Jul 2003 14:01:12
14 Jul 2003 14:01:12 Lee Diggins replied:
Yes, no problem or post it here, others can see whats going on....

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 14 Jul 2003 14:12:16
14 Jul 2003 14:12:16 Ric A replied:
This is the code:


Thanks a lot
Replied 14 Jul 2003 14:21:30
14 Jul 2003 14:21:30 Lee Diggins replied:
Hi

This could possibly a Pure ASP Upload question, which I don't use, try contacting Martha Graham.

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 14 Jul 2003 14:27:04
14 Jul 2003 14:27:04 Ric A replied:
OK

thanks a lot digga
Replied 14 Jul 2003 14:38:59
14 Jul 2003 14:38:59 Martha Graham replied:
Please do not post code from extensions here. For support email your page with details to



Martha Graham
DMXzone manager
Replied 08 Aug 2003 16:57:37
08 Aug 2003 16:57:37 Andrew Clausen replied:
I am really stuck with this same problem with updating images - does anybody have some code that will check to see if the filefield is empty, and if so, not to overwrite the path vlaue in the datatbase?

Thanks!
Replied 19 Sep 2006 01:23:00
19 Sep 2006 01:23:00 Vernon Mr. replied:
Yes, I am having the same issues. If I cannot bind the dynamic information to the file field is their code to detect that the file field is empty. I only have this problem with the opera browser. When using IE or firefox I can submit a page with a blank file field and the file remains the same in the database.
Replied 13 May 2009 12:13:21
13 May 2009 12:13:21 Chantal Lanooij replied:
Hi I'm having the same problem, I'm using CS4 with asp upload 3
When I'm using an update form I have to fill in the file field, if I don't it automatically overwrites the olf file name with an empty file field/name so the field in the dbase is empty.. How can I solve this? So when the file field is empty it doesnt overwrite the old file field? Thankzzz
Replied 11 Aug 2009 08:08:06
11 Aug 2009 08:08:06 Data recovery replied:
Hey, I am also having the same problem.
Same overwriting problem with old file with empty one..
Can anyone have the solution?
Thanks in advance.

Mark Owen
Data recovery software



Replied 11 Aug 2009 10:35:57
11 Aug 2009 10:35:57 Patrick Julicher replied:
Hi all,

These questions would have better been posted in the Pure Upload Forums, but here's is an answer to the issue using Pure Upload together with an Update behavior:

www.dmxzone.com/go?14648

www.dmxzone.com/go?12079

Kind regards, Patrick

Reply to this topic