This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » Adobe Creative Suite » dynamic file field
Reply

dynamic file field

Ric A
Member



Since: 06 Feb 2002
Posts: 17
Posted 13 Jul 2003 16:31:28

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!

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!

Lee Diggins
Zone Manager



Since: 13 Dec 2002
Posts: 616
Replied 14 Jul 2003 13:40:52
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!!!
Ric A
Member



Since: 06 Feb 2002
Posts: 17
Replied 14 Jul 2003 13:51:15
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?
Lee Diggins
Zone Manager



Since: 13 Dec 2002
Posts: 616
Replied 14 Jul 2003 14:01:12
Yes, no problem or post it here, others can see whats going on....

Digga

Sharing Knowledge Saves Valuable Time!!!
Ric A
Member



Since: 06 Feb 2002
Posts: 17
Replied 14 Jul 2003 14:12:16
This is the code:


Thanks a lot
Lee Diggins
Zone Manager



Since: 13 Dec 2002
Posts: 616
Replied 14 Jul 2003 14:21:30
Hi

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

Digga

Sharing Knowledge Saves Valuable Time!!!
Ric A
Member



Since: 06 Feb 2002
Posts: 17
Replied 14 Jul 2003 14:27:04
OK

thanks a lot digga
Martha Graham
Locked
Total lost Member



Since: 15 Aug 2002
Posts: 1,094
Replied 14 Jul 2003 14:38:59
Please do not post code from extensions here. For support email your page with details to



Martha Graham
DMXzone manager
Andrew Clausen
Member



Since: 12 Apr 2003
Posts: 9
Replied 08 Aug 2003 16:57:37
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!
Vernon Mr.
Member



Since: 29 Aug 2006
Posts: 10
Replied 19 Sep 2006 01:23:00
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.
Chantal Lanooij
Member



Since: 22 Jan 2009
Posts: 2
Replied 13 May 2009 12:13:21
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
Data recovery
Member



Since: 10 Aug 2009
Posts: 1
Replied 11 Aug 2009 08:08:06
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



Patrick Julicher
Official Representative



Since: 04 Feb 2002
Posts: 1,208
Replied 11 Aug 2009 10:35:57
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

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency