I'm new to this package, and to Amazon S3.
I've followed the instructions on the main page of the slingshot package, setup a new s3 bucket, configured the credentials in Meteor.settings, configured a CORS file on the bucket, all looks ok.
But when I call uploader.send (with the sample code from the package main page), I get the following error on the console, and the file is not uploaded:
Error uploading <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>...
Am I missing something? Anyone able to help out?
Problem was with the s3 user permissions setup.
The user to which the credentials are stored in the settings file must have access to store files in the bucket. The easiest way (for test only) is to grant the user the S3 Full Access policy.
Related
I have a huge file stored in a s3 compatible cloud ocean (not Amazon). I want to have a download button which will result to downloading this file for user.
I have installed "Media Cloud" plugin which has ability to connect to s3 compatible cloud. But I cant find a way to serve this file which is only saved in my s3 bucket in my wordpress.
If you only have 1 file to serve, you should be able to get the URL of the file in your s3 bucket admin panel where the file lives.
The main thing you need to check if the object (the file) is publically readable and your bucket is set up as a "static website" so it can serve HTTP. If it's not, you won't be given an object URL to put on your site.
I'm not sure who you host your s3 with if you say it's not Amazon, but here's a guide on how to do it if you did use Amazon.
I'm trying to access/download files that have been uploaded to Firebase storage but I can't figure out how to. Some of the files have a create new access token button under the storage location which gives me a link to the file on the web. Unfortunately, this is only a few files and seems to only be ones uploaded from localhost?
I can't find any reference to this on the documentation, this should be achievable through the Firebase dashboard?
I've tried setting the access rules to allow reads in all cases which hasn't helped.
Thanks
In general, you're supposed to use getDownloadURL(), as shown in the documentation, from within your web or mobile app to generate a download URL for use within your app. Typically, the console is only used to revoke the tokens that enable to download of each file through that URL.
If that's not specifically what you're trying to do, perhaps you want to read up on other was to make data public in Cloud Storage. The Firebase console is not really the best mechanism to manage downloadable content.
I have deploy wordpress multiple site on google app engine and now i want to change uploads folder as google bucket folder where i can upload media. Now the following issue i have ..
Unable to create directory https://console.cloud.google.com/storage/browser/media-wordpress/. Is its parent directory writable by the server?
OR
Unable to create directory gs://media-wordpress/. Is its parent directory writable by the server?
So how I can make writable for my wordpress site or ananamous users.
Sam
You'll need to create the bucket media-wordpress from your Developer Console or the gsutil tool for example as explained here. Once done, you'll be able to reference this bucket in Wordpress with the format https://storage.googleapis.com/media-wordpress/
I had the same issue. Exactly:
Unable to create directory 1. Is its parent directory writable by the server?
on image upload. After two days of debugging I dumped exception:
Cannot use ACL API to set object policy when object policies are disabled
found this advice and changed my bucket policy to "individual object permissions" aka "object-level permissions" on Permissions tab.
I create application in firebase console, filled application name and fingertrip fileds. Then i try download configuration file google-service.gson and getting message "Failed-Forbidden". What is it and what am I supposed to do?
Problem was in two google accounts. Need exit from one before getting configuration file.
i have button, on a click of which i want to download the file on the local pc, i am using webclient.downloadfile(), but i am getting the below error:
Access to the path 'C:\Windows\SysWOW64\inetsrv\ms-banner.gif' is denied.
i am using below code to download file:
WebClient client = new WebClient();
client.DownloadFile(new Uri("http://www.contoso.com/library/homepage/images/ms-banner.gif"), "ms-banner.gif");
i dont understand why its fetching the file from local server, as i have already stated the remote uri
It's fetching the file from the remote server but trying to save it in the current directory because you have only specified a relative filename as second argument: "ms-banner.gif". And it seems that the account you are running your application under doesn't have permission to write to the current working directory which happens to be C:\Windows\SysWOW64\inetsrv.
So you have basically 2 possibilities:
Modify the account you are running your application under and grant it permissions to write to this directory
Specify another location (as an absolute path) to save the file to where the account you are running your application under has write permissions.
contoso.com redirects to microsoft.com... the path you have there in the URL does not exist and you won't be able to download it. I'm not sure why it's trying to go to your local machine, but have you tried some other image on some other website? Like http://i.cdn.turner.com/cnn/.e/img/3.0/global/header/hdr-main.gif for example?