I am looking for a way to use dropzonejs to upload images to firebase storage. On regular way without dropzone it is no problem. but i like the functionalities of dropzonejs and want to use it.
I would appriciate any help.
Not sure this is possible without ripping out the upload internals of dropzone and replace them with our uploader. The other option would be to set up your own server and use a GCS uploader to upload to Firebase Storage.
Related
Is it possible to store dropzone.js files in local storage? I read the docs and looked all around the web for examples but there were none, so it is even possible?
It is posible. The part that you have to understand is that dropzone.js gives you the user experience, how you handle the docs or images in your server side is something different. You can try using ajax.
For example if you are using C# you have to handle how and where is going to be saved those docs. You need to define a folder in your disk where those docs are going to be stored.
I was wondering if it was possible to upload to S3 using the SDK with an imageURI.
I would like to upload a picture to my S3 bucket from a mobile phone camera or gallery. However, the cordova library only returns an imageURI for this picture. It seems like it doesn't work in the S3 upload function. I would prefer to avoid the complexities of the REST API and just use the SDK. Is this possible if I do not have a file object but only an image URI? I am using the Ionic framework if this is useful information to anybody.
Any help is appreciated.
Thanks
I have a use case where an angular front end will need to submit image and Django Rest Framework API will need to save it to filesystem during image upload calls. During image download scenario the image will need also be served up from filesystem.
If someone already figured out this usecase please post it. Help will be highly appreciated.
Django REST framework provides an ImageField that can handle the uploading of images using Django's file upload handlers. So you might be interested in learning how it is done in Django first: Need a minimal Django file upload example
I want to store image on firebase and want to use it somewhere. I went through this SO post and tried this demo.
It stores images as data:url format. But I want to upload and store images as physical file so I can use it further, something like this url http://example.com/some_image.png
Can I achieve this with Firebase?
No. The Firebase API currently does not support storing files outside of its database.
Update: at Google I/O 2016 Firebase added Firebase Storage to its offering, which is a service dedicated to storing files.
I have a model which *I want* to contain an image blob. I have the images on my local filesystem, but due to the nature of my application, I need to get them in the datastore. Here's my model:
class JeanImage(db.Model):
type = db.StringProperty(required=True, choices=set(["main","front","back","detail"]))
image = db.BlobProperty(required=True)
I haven't tried anything yet because I'm not great when dealing with images.
How can/should I convert my images to blobs so that I can get them in my bulkupload csv file?
Mark
You can do it, just not with the bulk uploader. You need to access the remote api directly.
This site has a basic example of how to use it:
http://www.billkatz.com/2009/2/Remote-API-Hello-World
Its pretty slow and a good idea to have a retry mechanism.
A more detailed description can be found here:
http://code.google.com/appengine/articles/remote_api.html
I believe that what you are trying to achieve is not possible using the app engine bulkloader.
Instead try to create some kind of uploader yourself. For example you could upload the images as a zip file and then extract it an store it in the datastore. The code for that should be fairly straightforward if you can map your images to the datastore entity (e.g. by using a naming convention).