File upload field: Strange behaviour

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

File upload field: Strange behaviour

Post by jsetzer » 2018-09-06 09:48

Hi,

I have a problem with a file upload field:
AppGini_2018-09-06_11-27-19.png
AppGini_2018-09-06_11-27-19.png (111.94 KiB) Viewed 2780 times

There is a column named file. I can upload PDFs as usual. This works as expected.


When I click download link in a child-table, the link works:
chrome_2018-09-06_11-29-33.png
chrome_2018-09-06_11-29-33.png (45.55 KiB) Viewed 2780 times
chrome_2018-09-06_11-41-53.png
chrome_2018-09-06_11-41-53.png (52.92 KiB) Viewed 2780 times


This means that the file exists and the file-value in the table points to the correct filename.


But when I open the details view and click the download link, once again a new tab opens, but this time the page is blank:

chrome_2018-09-06_11-34-25.png
chrome_2018-09-06_11-34-25.png (32.12 KiB) Viewed 2780 times
This link leads to that result:
chrome_2018-09-06_11-38-43.png
chrome_2018-09-06_11-38-43.png (4.79 KiB) Viewed 2780 times


This is very strange. I have copied the ULR of both links. They are almost identical:

Code: Select all

<a id="file-link" href="link.php?t=attachments&amp;f=file&amp;i=2" target="_blank"><i class="glyphicon glyphicon-file" title="62c5da76c42286610.pdf" style="font-size: x-large; top: .35em;"></i></a>

Code: Select all

<a href="link.php?t=attachments&amp;f=file&amp;i=2" target="_blank" class="btn btn-default" title="Download"><i class="glyphicon glyphicon-download-alt"></i></a>
As you can see, the URL of the new tab is identical, too. But somehow the two calls give me different results.

I have no idea right now. Do you have any?
Thanks in advance!!!

Kind Regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: File upload field: Strange behaviour

Post by jsetzer » 2018-09-06 18:17

It's strange:
When I rightclick the non-working link and choose "open link in new tab", it works.
chrome_2018-09-06_20-13-52.png
chrome_2018-09-06_20-13-52.png (10.13 KiB) Viewed 2769 times


Left-click on the link still does not work and stills opens an empty tab. :(
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: File upload field: Strange behaviour

Post by pbottcher » 2018-09-07 08:37

Hi,
unfortunately I cannot reproduce your error. on my system it works just fine.
Can you open the debug view on the empty page and reload the page to see if it produces an error?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: File upload field: Strange behaviour

Post by jsetzer » 2018-09-07 13:04

SOLVED :mrgreen: This issue is not connected to AppGini!

Problem
It seems to be a problem with Google Chrome (Version 68.0.3440.106) and the integrated PDF Viewer.

Solution
I have deactivated the integrated PDF Viewer of Google Chrome. And now I can download the files from both, the child view tab AND the details view.

Deactivating: see https://support.google.com/chrome/answer/6213030?hl=de


Thanks for your time reading this and helping me!!!

Kind Regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

federico
Veteran Member
Posts: 74
Joined: 2020-10-29 14:52

Re: File upload field: Strange behaviour

Post by federico » 2020-12-08 13:47

Do you have a solution with Microsft Edge too?
The right click and open in new tab works. Left click doesn't work. The same in table view.

thanks

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: File upload field: Strange behaviour

Post by jsetzer » 2020-12-08 14:01

No, sorry, I don't have a solution for Microsoft Edge.

Maybe your problem is similar to the problem reported here:
viewtopic.php?p=15547#p15412
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

federico
Veteran Member
Posts: 74
Joined: 2020-10-29 14:52

Re: File upload field: Strange behaviour

Post by federico » 2020-12-08 15:20

You are right. It's the same problem. Thanks

Post Reply