how to image upload from server folders using php jquery - php

Is there any chance to upload images from my server folders? i mean if we place browse button in forms it will take images from my desktop(example) or from my system. but i need to give an option to upload the images from my server folder only.

Related

Symfony2 upload file without form

Using symfony2, I would like to upload some files only from their path on my PC.
I read an excel file containing some path to pictures (like /home/thibault/pictures/*.jpg) and I want to upload them on my server. So, I do not want a form.
All the documentation I have read deal with upload from a form, is this possible to do that without ?
Thanks in advance,
No it is not possible. For what you are looking for you need to deploy some locally running agent. Any browser will not permit you to pull files form folders on the user's computer. The user has to be the one to say what files they want to upload if it is to be done inside a browser.

Saving uploaded media content

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

Can I navigate Image Uploader with cURL?

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.

Upload an image using a URL in Codeigniter

I went through the tutorial to upload an image in Codeigniter with the Upload library, but I was wondering: Is it possible to upload an image using a URL in Codeigniter?
Yes, it's possible. See the answer on this question: Saving image from PHP URL.
If you're going to go the cURL route, see the CodeIgniter wiki entry: http://codeigniter.com/wiki/Curl_library/
If I understand your question clearly;
I think Upload a file using URL isn't a properties of Codeigniter or any other technologies. It's about operating system.
For example, you have a upload system with generated by PHP and Codeigniter. When you click Browse button, you can select an image in your computer or you can write an image link hosted on the internet. When you insert an image link, operating system generate a temporary path source (with your image) in your computer. In Windows, this could be C:/Temp folder. Then you can upload your image which you insert its' link.
File Uploading Class
Note: My english is off. Sorry for that.

access data on apache server using xampp

i am writing an iphone application, which basically uploads and downloads Images to/from a server. in order to test my code i installed xampp and everything works fine now. if i upload an image the server creates a folder named with the UDID-number of the device
(via the http-method POST a php script is called).
but if i enter the directory of such a folder and the name of the image in the browser i can see it in the browser.
i am a newby on this topic and have no idea if there are better possibilities. my questions are: should i use databases where i save the images or is it just fine to create folders via a php script and save the images into these folders? can i hide all the datastructure, such that you cannot access it via a browser but only with the iphone application? (the application should only be able to download pictures randomly). thx
If you do not want an image serverable by apache, you need to store it outside the webroot. So if your webroot is C:\xampp\htdocs, you could store the images in a folder structure under C:\xampp\images
Your iphone app would have to do a little more work then to pull a random one and send it to the user.

Categories