Questions tagged [image-uploading]

The process of moving images or similar files from a client machine to a server for storage and possible later display.

3034 questions
151
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,663
  • 5
  • 31
  • 38
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,348
  • 14
  • 52
  • 72
93
votes
4 answers

Uploading Images to Server android

I wanted to know which is the best way to upload image to server without loosing its quality. I have searched on google found various methods of posting data. But I am not sure which one would be best to upload. I came across Multipart Image…
Manoj
  • 2,659
  • 3
  • 27
  • 47
82
votes
4 answers

What's a good image hosting site with an API to allow me upload images from my website?

I'm looking for an image hosting website that'll allow me to upload images onto their servers from my own website using an API. I like Imgur.com's API but I'm looking for alternatives.
vette982
  • 4,322
  • 7
  • 32
  • 40
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
  • 23
  • 35
59
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
  • 705
  • 2
  • 7
  • 10
50
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
  • 33,901
  • 20
  • 114
  • 183
40
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
  • 10,075
  • 22
  • 96
  • 153
39
votes
20 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…
37
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
  • 2,422
  • 3
  • 27
  • 56
35
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
  • 505
  • 2
  • 6
  • 13
34
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
  • 331
  • 1
  • 3
  • 6
32
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
  • 44,755
  • 49
  • 183
  • 309
26
votes
5 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
  • 355
  • 2
  • 4
  • 9
25
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
  • 475
  • 1
  • 5
  • 12
1
2 3
99 100