I want to upload image to a image hosting service (free). I want users to upload images using the form in my website, but directly to the my image hosting's account(in a album). I don't want users to upload images to my server first and then later upload this file to imagehosting account by using my server script.
I have read about Imageshack's API and imgur API. But i donot think they will allow direct uploading.
Do you know any image hosting service or API, that allows:
uploading images directly to the image hosting account (by users of
my website, instead of using script to do the upload)
easy to use API with PHP
allows fetching of images from the albums later
Please help
Try to use uploadify library. This is very nice and usefull lib.
http://www.uploadify.com/
Related
I have a website. In my website, users will upload videos. I get a Vimeo Pro account to store the videos. Now, the videos are stored form user end to the server. Then it uploads to Vimeo from the server. It takes twice the time to upload it to Vimeo.
So, I need a solution to upload the videos directly from the user's end. I don't want to upload the videos to my server. Is there any way to upload the videos directly?
Thanks in advance.
To upload direct from the user/client browser, use the POST upload method and deploy the HTML form as documented here: https://developer.vimeo.com/api/upload/videos#form-based
Uploads using the POST upload method will upload from the client browser direct to Vimeo, without uploading to your server. However, be aware that if the user leaves the page or loses internet connection the upload will fail and there is no way to resume the upload.
Relatively new to web development here, but am trying to implement an image upload feature, the contents of which will be previewed to the person (administrator) uploading the image, and then stored in a database (and displayed to the end user on a different page).
I found a resource that uses a Imageshack API, and was a bit confused about what this is and how the person implemented the API to achieve the image upload. The code for this is here: http://www.sceditor.com/posts/how-to-upload-and-insert-an-image/
When I googled "Imageshack API," I kept running across something that said I need to request a key. What does this mean, and do I have to do it? Is this the easiest way to go about creating an image upload feature for my purposes?
Thank you all very much!
Imageshack API is for uploading image files to your account hosted at Imageshack.com. It seems that you want to upload image files to your own website and store such files on your own web servers (either in a cloud service such as AWS or your co-located/managed servers at some data centres). So, you probably do not want to use Imageshack.
As to how to upload image files using HTML & PHP, you may want to check out a short tutorial at:
www.w3schools.com/php/php_file_upload.asp
Also, by the way, storing image files into a database such as MySQL may not be a good idea -- image files should be stored as files. It is faster to access such image files on a web server than to access image contents stored in a database.
I'm making my own website using html and php, and a database using mysql on localhost on a easyPHP server. Users can make an account and upload videos on the site.
I'm wondering if it would be possible when they upload the file, it would upload the file to youtube and I can just save that link in my database. Then on the content page I could just use that link to show the video in an embedded player.
If that's not possible, what would be the best way to save the content in a folder on my PC?
Thanks
Yes, Youtube allows uploading video files directly to Youtube's servers, bypassing your server.
This page documents it pretty well: https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading
I'm wondering if anyone knows if manipulating the Aurigma Image Uploader using cURL is possible. Basically what I need to do is transfer images that are uploaded to my site (not using aurigma), and using web scripting (I'd assume cURL) send those photos to another site that is password protected but that uses Aurigma Image Uploader to receive photos. So I would need to be able to navigate to the correct upload folder on my desktop, then select all the photos in that folder and then upload them. I can't connect to the server directly using POST, so that option is out of the question. So any advice on how to accomplish this would be great. Thanks.
EDIT
To explain the process that needs to happen. Site/Server 1 receives images that are uploaded to it from users using a generic image uploading script. Site/Server 2 receives images that are uploaded to it via the Aurigma Image uploader. My question is whether a script can be created to transfer directly the images received on Server 1 to server 2? The script would see the uploaded images on server 1 and then navigate through the password protection on server 2, navigate to the area of the site to upload, then use the site's installation of Aurigma Image uploader to choose the images that were uploaded to server 1, select them, then upload them to server 2 using the aurigma image uploader.
I cannot access the server directly through POST methods, that is why I need to basically walk through the site using a created script, then have the script control which pictures to upload to server 2 based on what was uploaded to server 1. Clear as mud? :)
If I understand you right, you want to upload photos from server 1 (where you upload images using ‘web scripting’) to server 2 (‘another site that is password protected’) using Aurigma Image Uploader. Image Uploader does not support adding files to upload list from Java Script, this way, you cannot select files and initiate upload from your code.
Image Uploader sends files using HTTP POST requests, so you can try to form your own request compatible with Image Uploader API: POST Field Reference.
I just started working with the Flickr API today and I have a question:
If I allow a person to upload a photo to my website and then in order for me not to store it on my small local server, how can I just upload that photo to Flickr using the PHP Flickr API?
That should be a pretty common use case, correct? I use PHP.
Thanks,
Alex
Flickr Upload API:
http://www.flickr.com/services/api/upload.api.html
Simple php script to upload pics on flickr
http://www.flickr.com/groups/api/discuss/72157621716056865/
Maybe this will point you in the right direction since depending on what you want to do with your files after you upload them.
Have you checked out the documentation for the API. I've worked with it in the past, you don't need to download the image yourself you upload it and send it straight to Flickr.