Announcement

#1 2020-04-05 18:58:07

telemach
Member
2019-04-04
48

Downloading single picture is troublesome

Example

https://michal.walasz.net/photos/action … p;download

Under Chrome it downloads 94% or so and then does nothing and goes like 190% without finish

Under Firefox it gives this message right away cK_MvjyG.jpg.part can't be saved because source can't be read

Under IE it works OK

I checked and this is something with my Piwigo or settings on hosting server because this file from else is downloading just OK

http://douglassfamily.org/piwigo/action … p;download

downloading folders as ZIP also works OK so problem is with single files

Offline

 

#2 2020-04-06 02:07:41

erAck
Only trying to help
2015-09-06
2143

Re: Downloading single picture is troublesome

telemach wrote:

https://michal.walasz.net/photos/action.php?id=499&part=e&download
Under Chrome it downloads 94% or so and then does nothing and goes like 190% without finish
Under Firefox it gives this message right away cK_MvjyG.jpg.part can't be saved because source can't be read

Works for me with both Firefox and Chromium.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-04-06 07:15:23

executive
Member
2017-08-16
1233

Re: Downloading single picture is troublesome

Firefox, Chrome, Safari
All OK.

Offline

 

#4 2020-04-07 15:13:16

telemach
Member
2019-04-04
48

Re: Downloading single picture is troublesome

I asked a friend and there is something bad indeed

https://scontent-waw1-1.xx.fbcdn.net/v/t1.15752-9/92408320_622982721880707_568731572107214848_n.jpg?_nc_cat=110&_nc_sid=b96e70&_nc_ohc=yI9rpji9amQAX_pvfyM&_nc_ht=scontent-waw1-1.xx&oh=472b18781c729093eafb71a8d10b6f2f&oe=5EB3D2B6

I've checked with all plugins disabled and no change

Last edited by telemach (2020-04-07 15:32:52)

Offline

 

#5 2020-06-01 21:37:17

telemach
Member
2019-04-04
48

Re: Downloading single picture is troublesome

I fixed it by small workaround

{assign var=linkobrazka0 value=$current.selected_derivative->get_url()|replace:'_data/i/':''}
{assign var=linkobrazka value=$linkobrazka0|replace:'-me':''}


{strip}{if isset($current.U_DOWNLOAD)}
    <a id="downloadSwitchLink" href="https://michal.walasz.net{$U_HOME}{$linkobrazka}" download="{$current.TITLE}.jpg" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">

so I switched from PHP script from Piwigo to straight HTML5 download option to force download instead of viewing

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact