The process of moving images or similar files from a client machine to a server for storage and possible later display.
Questions tagged [image-uploading]
2997 questions
170
votes
18 answers
What is the best place for storing uploaded images, SQL database or disk file system?
I'm writing an application that allows users to upload images onto the server. I expect about 20 images per day all jpeg and probably not edited/resized. (This is another question, how to resize the images on the server side before storing. Maybe…

Tobias
- 4,999
- 7
- 34
- 40
96
votes
10 answers
ios Upload Image and Text using HTTP POST
Thanks for reading.
I am new to iOS and I am trying to upload an Image and a text using multi-part form encoding in iOS.
The curl equivalent is something like this: curl -F "param1=value1" -F "param2=@testimage.jpg"…

Sagar Hatekar
- 8,700
- 14
- 56
- 72
69
votes
3 answers
How to upload and store an image with google app engine (java)
I am looking for the simplest way to upload and store an image (file) to the GAE (java).
Googling for hours without any simple and clear result.
Found this link.
But I still don't know how to store an image, and how to retrieve it.
I am looking for…

OXMO456
- 3,558
- 2
- 25
- 35
60
votes
3 answers
Android - Reduce image file size
I have an URI image file, and I want to reduce its size to upload it. Initial image file size depends from mobile to mobile (can be 2MB as can be 500KB), but I want final size to be about 200KB, so that I can upload it.
From what I read, I have (at…

KitKat
- 715
- 2
- 7
- 10
53
votes
8 answers
Send file via cURL from form POST in PHP
I'm writing an API and I'm wanting to handle file uploads from a form POST. The markup for the form is nothing too complex:

Martin Bean
- 38,379
- 25
- 128
- 201
47
votes
5 answers
how to upload multiple images to a blog post in django
I am trying to allow each user to upload multiple pictures to a single blog post. I have been trying to work out the best way to do this for a few days now. What is the best practice to do this?
From what I have read, I should make a seperate image…

ollysmall
- 633
- 2
- 7
- 13
44
votes
22 answers
Unable to create directory in wp-content/uploads in Wordpress
I am not able to upload any images to the Media section.
I get this error message:
"Unable to create directory wp-content/uploads/2015/05. Is its parent
directory writable by the server?"
I tried changing the permissions, gave full access 777 to…

Aasim Hussain Khan
- 1,137
- 3
- 15
- 33
43
votes
4 answers
Android get Gallery image Uri path
In an Activity, I can choose an image from the Gallery, and I need its Uri path (in the log, the Uri path for my test image is /content:/media/external/images/media/1).
I'm getting this error though:
08-04 02:14:21.912: DEBUG/PHOTOUPLOADER(576):…

Allan Jiang
- 11,063
- 27
- 104
- 165
43
votes
6 answers
Upload image in Flask
I have to upload some images in static folder of my project directory, but i don't know how to say it to my code. In the follow code.py i'm able to upload an image and store it in the project directory at the same level of static folder, but i would…

Teor9300
- 545
- 2
- 6
- 9
38
votes
4 answers
How to preview picture stored in the fake path in Angular 2/Typescript?
Browsers don't take full path of local disc, instead they concatenate the filename with fakepath. Is there any way to access the file (image) from fakepath using typescript or angular 2?
I have this:
where my path variable…

Karan Desai
- 3,012
- 5
- 32
- 66
38
votes
3 answers
Check file size before upload
I am using this javascript that I got from here, and it works perfectly for what I need it to.
var _validFileExtensions = [".jpg", ".jpeg"];
function File_Validator(theForm){
var arrInputs = theForm.getElementsByTagName("input");
for (var…

cchap
- 371
- 1
- 3
- 6
34
votes
2 answers
How to send multipart/form-data with Retrofit?
I want to send an Article from and Android client to a REST server. Here is the Python model from the server:
class Article(models.Model):
author = models.CharField(max_length=256, blank=False)
photo = models.ImageField()
The following…

JJD
- 50,076
- 60
- 203
- 339
29
votes
3 answers
How to upload images like png into GitHub repository?
I'm a newbie to Git or GitHub, and didn't find how to upload an image file into my repo in Git? Any idea?

macchiavalley
- 517
- 1
- 5
- 12
26
votes
3 answers
How to upload images into MySQL database using PHP code
I am trying to save images in my database from HTML form. I have written PHP code to accomplish this task. The program is not generating any error message, but also not inserting image data in MySQL database. Kindly check it.
Here i am sharing a…

Taha Kirmani
- 1,274
- 6
- 26
- 55
24
votes
4 answers
CKEditor Image Upload
I am looking to include CKEditor in a project I am working on and I need the image upload support provided by the CKFinder plugin, however I do not particularly need the rest of the CKFinder tool and thus purchasing a license is a little overkill.…

Nathan Taylor
- 24,423
- 19
- 99
- 156