Comments (4)
I'll check it as soon as I can. Feel free to open up a pull request though!Marcelo Reyna
On Sat, Aug 2, 2014 at 3:56 PM, opinsky [email protected] wrote:
Hello
this package is not working on meteor 8.3
meteor create yyy
cd yyy
mrt add s3prevents startup of the application
Reply to this email directly or view it on GitHub:
#16
from s3.
Had a chance to take a look, the package is not broken for 0.8.3. It will break your application if you do not give it settings to start off with (the reason you can't just mrt add s3 and see it work). Did you correctly follow step 1?
I am going to patch it to make sure it doesn't break if there are no settings.
Let me know if it's still breaking after following the instructions though, there might be something there I'm not seeing that's not letting me replicate the issue.
from s3.
Marcelo - thank you for the very prompt reply. The following S3methods.js was working on 0.8.2 and is not working anymore after upgrading to 0.8.3.
I can replicate it by creating a new project, adding s3, and adding the s3methods.js file below. The error generated is:
W20140803-16:45:24.786(-3)? (STDERR)
W20140803-16:45:24.897(-3)? (STDERR) /Users/opinsky/.meteor/tools/cef2bcd356/lib/node_modules/fibers/future.js:173
W20140803-16:45:24.897(-3)? (STDERR) throw(ex);
W20140803-16:45:24.897(-3)? (STDERR) ^
W20140803-16:45:24.898(-3)? (STDERR) Error: Method not found [404]
W20140803-16:45:24.898(-3)? (STDERR) at .extend.apply (packages/livedata/livedata_server.js:1378)
W20140803-16:45:24.898(-3)? (STDERR) at .extend.call (packages/livedata/livedata_server.js:1348)
W20140803-16:45:24.899(-3)? (STDERR) at app/S3imageStorage.js:1:43
W20140803-16:45:24.899(-3)? (STDERR) at app/S3imageStorage.js:38:3
W20140803-16:45:24.899(-3)? (STDERR) at /Users/opinsky/Development/xxx/.meteor/local/build/programs/server/boot.js:161:10
W20140803-16:45:24.899(-3)? (STDERR) at Array.forEach (native)
W20140803-16:45:24.900(-3)? (STDERR) at Function..each..forEach (/Users/opinsky/.meteor/tools/cef2bcd356/lib/node_modules/underscore/underscore.js:79:11)
W20140803-16:45:24.900(-3)? (STDERR) at /Users/opinsky/Development/xxx/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8
Meteor.call("S3config",{
key: '###mykey###',
secret: '###mysecret###',
bucket: 'mybucket',
directory: '/images/'
});
Meteor.methods({
S3callbackFunction:function(url,context) {
console.log('Add '+url+' to the id of '+context);
console.log(context._id);
console.log(context.name);
},
locationImageL_callback: function(url, context) {
console.log('added ' + url + ' to ' + context.name + ' ImageL');
Locations.update(context._id, {$set: {imageL: url}});
},
locationImageS_callback: function(url, context) {
console.log('added ' + url + ' to ' + context.name +' ImageS');
Locations.update(context._id, {$set: {imageS: url}});
},
eventImage_to_S3: function(url, context) {
eventImage = {
eventId: context._id,
imageURL: url,
created_at: new Date()
}
EventImages.insert(eventImage,function(error) {
if (error)
console.log(error.reason)
else
console.log('added ' + url + 'to ' + context.name + ' (eventImage collection');
})
}
});
from s3.
Yup, it seems you're doing step 1 the old way, lol. Try this:
from s3.
Related Issues (20)
- Upload success but file not found HOT 1
- How to enable AES256 encryption for all the files uploaded ?? HOT 1
- AES 256 encryption
- File type restriction
- how to get version Id of an object??
- Unable to upload saved file
- Server Side Upload HOT 5
- React Examples in Docs HOT 3
- Unable to upload files HOT 1
- s3.upload hangs no results or errors HOT 9
- S3 URL Format Issue HOT 1
- Some files failed to upload getting "Bad Request Error" HOT 4
- S3.delete(path,callback) returns true, doesn't delete from s3 HOT 1
- Question Lepozepo:S3 Multiple File Upload HOT 1
- Calling S3.delete from server side HOT 5
- S3 does not work on 1.6.1 due to Meteor.uuid being depreciated.
- [Question] How does the S3 package share the credentials between client and server? HOT 2
- Add support for GovCloud region HOT 3
- ReferenceError: _ is notdefined HOT 1
- lepozepo s3 Cannot read property 'upload' of undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3.