Page 1 of 1

File upload field: Strange behaviour

Posted: 2018-09-06 09:48
by jsetzer
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 2782 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 2782 times
chrome_2018-09-06_11-41-53.png
chrome_2018-09-06_11-41-53.png (52.92 KiB) Viewed 2782 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 2782 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 2782 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

Re: File upload field: Strange behaviour

Posted: 2018-09-06 18:17
by jsetzer
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 2771 times


Left-click on the link still does not work and stills opens an empty tab. :(

Re: File upload field: Strange behaviour

Posted: 2018-09-07 08:37
by pbottcher
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?

Re: File upload field: Strange behaviour

Posted: 2018-09-07 13:04
by jsetzer
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

Re: File upload field: Strange behaviour

Posted: 2020-12-08 13:47
by federico
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

Re: File upload field: Strange behaviour

Posted: 2020-12-08 14:01
by jsetzer
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

Re: File upload field: Strange behaviour

Posted: 2020-12-08 15:20
by federico
You are right. It's the same problem. Thanks