Downloading SDA should be easier #31

Open
opened 11 months ago by duke · 3 comments
duke commented 11 months ago
Owner

Currently if someone goes to hush.is there is no direct link to download a mobile wallet from the main page. They have to click around to various links and it's not intuitive. We may want it to that we have a direct link to download SDA on the main hush.is index page if the current device is mobile.

Currently if someone goes to hush.is there is no direct link to download a mobile wallet from the main page. They have to click around to various links and it's not intuitive. We may want it to that we have a direct link to download SDA on the main hush.is index page if the current device is mobile.
dan_s was assigned by duke 11 months ago
Collaborator

Since lots of Android phones download SDA as a *.zip file and then have issues with it, I'm not sure if there is a direct-link fix for this.

Since lots of Android phones download SDA as a *.zip file and then have issues with it, I'm not sure if there is a direct-link fix for this.
Collaborator

usually it can be fixed with the proper nginx config and mime type, but i'm not sure what it is currently. something like this might work.

  location ~* \.apk$ {
    types {
      application/vnd.android.package-archive apk;
    }

    add_header Content-Disposition "attachment";
  }
usually it can be fixed with the proper nginx config and mime type, but i'm not sure what it is currently. something like this might work. ``` location ~* \.apk$ { types { application/vnd.android.package-archive apk; } add_header Content-Disposition "attachment"; } ```
Poster
Owner

@fekt it's possible what you have above might work, but part of the issue is that Gitea doesn't use filenames for attachments, they are some unique ID and then the download filename is given in the Content-Disposition header that it generates. Because of this bug, I actually uploaded an actual .apk file to the hush.is website to get around this a long time ago (https://hush.is/android I think), but that URL seemed to have the same bug with this particular phone.

And to clarify, this issue is to make a direct link to download SDA on the main hush.is website when viewed on mobile. The bug with apk/zip stuff is https://git.hush.is/hush/hush.is/issues/32

@fekt it's possible what you have above might work, but part of the issue is that Gitea doesn't use filenames for attachments, they are some unique ID and then the download filename is given in the Content-Disposition header that it generates. Because of this bug, I actually uploaded an actual .apk file to the hush.is website to get around this a long time ago (https://hush.is/android I think), but that URL seemed to have the same bug with this particular phone. And to clarify, this issue is to make a direct link to download SDA on the main hush.is website when viewed on mobile. The bug with apk/zip stuff is https://git.hush.is/hush/hush.is/issues/32
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.