-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage:: Clicking on "Public Link" downloads the files #657
Comments
Hello @rupanjanbaidya! Are you still experiencing this issue? Cheers! |
Apologies for the delay. Thanks for getting back to me! I'll close this out for now. I suspect it had to do with object content-type metadata not being set correctly, although not sure. |
minherz
pushed a commit
that referenced
this issue
Nov 9, 2022
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.4](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.3...v0.122.4) (2021-08-31) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.2 ([#656](https://www.github.com/googleapis/java-errorreporting/issues/656)) ([9d4e28a](https://www.github.com/googleapis/java-errorreporting/commit/9d4e28ab57cc53c515dfc97aba7e4cbb6bb7eebf)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#657](https://www.github.com/googleapis/java-errorreporting/issues/657)) ([0e1e474](https://www.github.com/googleapis/java-errorreporting/commit/0e1e474b00ed6f512a763eaea3b86a72d5356841)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
minherz
pushed a commit
that referenced
this issue
Nov 10, 2022
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.4](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.3...v0.122.4) (2021-08-31) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.2 ([#656](https://www.github.com/googleapis/java-errorreporting/issues/656)) ([9d4e28a](https://www.github.com/googleapis/java-errorreporting/commit/9d4e28ab57cc53c515dfc97aba7e4cbb6bb7eebf)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#657](https://www.github.com/googleapis/java-errorreporting/issues/657)) ([0e1e474](https://www.github.com/googleapis/java-errorreporting/commit/0e1e474b00ed6f512a763eaea3b86a72d5356841)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
minherz
pushed a commit
that referenced
this issue
Nov 10, 2022
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.4](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.3...v0.122.4) (2021-08-31) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.2 ([#656](https://www.github.com/googleapis/java-errorreporting/issues/656)) ([9d4e28a](https://www.github.com/googleapis/java-errorreporting/commit/9d4e28ab57cc53c515dfc97aba7e4cbb6bb7eebf)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#657](https://www.github.com/googleapis/java-errorreporting/issues/657)) ([0e1e474](https://www.github.com/googleapis/java-errorreporting/commit/0e1e474b00ed6f512a763eaea3b86a72d5356841)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
9 tasks
Sita04
pushed a commit
that referenced
this issue
Nov 11, 2022
…uration to v1.2.0 (#657) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-recaptchaenterprise).
Sita04
pushed a commit
that referenced
this issue
Nov 15, 2022
…uration to v1.2.0 (#657) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-recaptchaenterprise).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/storage/json-api/src/main/java/StorageSample.java
Did you change the file? If so, how?
public static void main(String[] args) throws Exception {
CloudStorage.uploadFile("hng-static", "temp/", "/Users/rupanjan/Downloads/15676285_10158033346085311_1317913818452680683_o.jpg");
CloudStorage.uploadFile("15676285_10158033346085311_1317913818452680683_o.jpg", "temp/", "image/jpeg", new File("/Users/rupanjan/Downloads/15676285_10158033346085311_1317913818452680683_o.jpg"),
"hng-static");
}
Describe the issue
I am able to upload the file successfully, but whenever, I click on that "Public Link", it downloads automatically. My intention was to share it for all user with read access. N.B. If I am uploading the file manually from browser, I am able to open the file in browser, but when I upload it programically, it downloads everytime I click on "Public Link"
Please correct me if I am missing anything!!
The text was updated successfully, but these errors were encountered: