I have hard time trying to upload image through product API(http://docs.sylius.org/en/latest/api/products.html). I managed find some samples in tests but it was not wery usefull(https://github.com/Sylius/Sylius/blob/master/tests/Controller/ProductApiTest.php);
Anyone knows working examples with guzzle or similar clients, that would be wery helpfull, cause i cant find any working example neither in documentation or web.
Related
I'm currently working on profile images for my registered users.
As of now my users can upload their own images to use and of course there's a default image, incase users don't upload a picture.
By the way, I'm using the Paperclip gem.
I've been trying to do so that my users can choose to select an image from a list of images, provided by the website/database.
This website: https://satwcomic.com/ has exactly what I'm looking for.
Example from the website.
I've been trying to find a solution for this for the past month, but without luck. any hints on how i could successfully achieve such feature with or without paperclip?
I'm hoping to get pushed in the right direction.
Please do keep in mind, I'm still learning Ruby on Rails as a student and any help will be appriciated.
I am building an application that would upload audio on SoundCloud and get the URL of the uploaded track using Codeigniter.
I need to know how to upload the file to SoundCloud.
How do I do it? I have not used API thing before and I don't find a proper tutorial or a guide to how to upload it. So if anybody can help me with this, please answer my question here.
You should try the SoundCloud CodeIgniter Library, from GitHub. I have never used it, but I do have an upcoming project that will use SoundCloud, so for now this is all I can do;
https://github.com/benedmunds/CodeIgniter-Soundcloud-Library
I am trying to create a portfolio site and am stuck finding a good approach to deal with images. I have integrated the SonataAdmin Bundle and have setup Admin classes for "Projects" and "Images". My goal is to go into a Project and add images to it and select one of these images as the Project thumbnail.
Ideally I would like to integrate an AJAX multi-uploader. I am not sure the best approach for this and am looking for any suggestions / thoughts.
I have looked at the Sonata Media Bundle, though it seems more robust than I actually need and the learning curve to customize it seems a bit steep. I have already setup an image entity (symfony2 cookbook for uploading documents) I imagine I can create a many-to-one on images and projects rather than using the MediaBundle, though I am still at a loss of how to integrate an AJAX script for this.
Thanks in advance for any advice!
Shawn
I suggest you to look at https://github.com/punkave/symfony2-file-uploader-bundle
This bundle is based on the excellent blueimp jQuery-File-Upload package and provides multiple file uploads.
Edit 28/04/14: There is now also OneupUploaderBundle which supports a variety of uploaders and seems to be under more active development.
checkout https://github.com/ruian/RuianUploadifyBundle its support multiupload but only with flash plugin.
Also this bundle is worth a shot. Not really mentioning AJAX, but seems really strong in basic uploading features. Once you get that done, you can ajaxify by yourself. I'm planning to try this bundle in few days, I may update this answer later.
So I endedup using Valumns Ajax multi uploader: http://valums.com/ajax-upload/
I tried to customize the Sonata Admin Page but this proved a bit difficult, Instead I simply created a route / controller / view specifically for uploading batch images. It seems to be working great!
I am trying to get Music Artist images and Album Art information from Wikipedia. Has anyone tried this before?
I searched around and found few links with relevant information
http://commons.wikimedia.org/w/index.php?title=Special:Search&ns0=1&ns6=1&ns12=1&ns14=1&ns100=1&ns106=1&redirs=0&search=buitenzorg&limit=10&offset=0 - search images for buitenzorg
http://www.mediawiki.org/wiki/API:Allimages - All images API call to fetch image urls from wiki
But could not find a way to download all the images from Music category and run deltas for updates after the initial download. Any pointers to the solution will be helpful.
I searched everywhere and finally I went with below mentioned implementation.
Here's the api documentation: http://www.mediawiki.org/wiki/API:Main_page
Call wikipedia API for artist page
Look at the player card info given on the right, and get the image name.
Make another wikimedia call to get Image download url.
Download the actual image.
For deltas, the only way is to hit wikipedia APIs again with image name and check for updates.
The other work around for this is setting your own wikimedia server, which will handle deltas.
See here http://www.mediawiki.org/wiki/Manual:Installation_guide
while looking for a Cocoa Facebook Framework that works with OSX I found PHFacebook.
http://developer.casgrain.com/?p=107
It's really nice and works well but the sample app is only able to read from Facebook. Can someone please explain to me how I can write something to facebook using PHFacebook? On the Developers homepage someone asked the same Question and the developer answered:
"I’m sure it’s possible, I just never tried. Did you add the “write” property to the request? Maybe that’s all you’re missing. The sample app only has “read”."
But I can't find any "read" property in the code. Can someone please give me a hint?
Thank you so much!
CaptnCrash
I had the same problem when I tried to upload the image to facebook, then, I used the phfacebook to get the access_token, and then used the ASIhttprequest to upload the image.
You can see the detail at
Facebook Graph API Upload Local Image to Wall (Objective-C)