It is currently 7 June 2025, 15:55 Advanced search

upload behavior ?

Questions and answers on how to best use Instant Developer

upload behavior ?

Postby john w » 26 May 2025, 15:02

When I upload a file it also creates an automatic download. I do not want this behavior. I dealt with this is in the past but cannot find how I resolved it. I just want the file to upload and not the auto downland.

I am hoping there there is a quick answer and solution for the issue.
Regards

John W
User avatar
john w
 
Posts: 849
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: upload behavior ?

Postby ljwilson » 27 May 2025, 11:55

Maybe a screen shot would help--I'm not sure what you mean.

...jack
ljwilson
 
Posts: 787
Joined: 26 November 2013, 14:15

Resolved - Re: upload behavior ?

Postby john w » 27 May 2025, 14:11

Yesterday I resolved by using EnterUploadMode in a ChangeRow event. That seems to stop the download part.

What happens is I upload the file, I process the file, and when it is done processing the file reasons I do not know It download a file to the desktop. I have not created any code for that to happen. I ran into this in the past but for the life of cannot remember a solution I used back then. I know I created a forum thread back then, but the download part is not in it.

For the moment, it is working as I want, but I wish I had a solution that I understood why this works. So frustrating to not understand something.
Regards

John W
User avatar
john w
 
Posts: 849
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: upload behavior ?

Postby ljwilson » 27 May 2025, 14:29

Interesting. I've never run into that.

...jack
ljwilson
 
Posts: 787
Joined: 26 November 2013, 14:15

Re: upload behavior ?

Postby john w » 27 May 2025, 15:56

Be glad, it is frustrating. It is like it is in an upload->download process. The ChangingRow event seems to interrupt the process.
Regards

John W
User avatar
john w
 
Posts: 849
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: upload behavior ?

Postby d.pierangeli » 5 June 2025, 14:19

Maybe is sufficient to set the MaxAutoShowSize to 0 with Field.SetBlobSize() .

https://doc.instantdeveloper.com/?ARTID ... 00&LANG=en

If there is the auto-show/preview and the file is not an image the browser will try to download it.
User avatar
d.pierangeli
Pro Gamma
Pro Gamma
 
Posts: 8129
Joined: 30 September 2010, 15:35


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 10 guests

cron