image-uploading

Uploading multiple images in Django admin

爱⌒轻易说出口 提交于 2019-11-27 11:22:10
问题 I'm currently building a portfolio site for a client, and I'm having trouble with one small area. I want to be able to upload multiple images (varying number) inline for each portfolio item, and I can't see an obvious way to do it. The most user-friendly way I can see would be a file upload form with a JavaScript control that allows the user to add more fields as required. Has anybody had any experience with an issue like this? Indeed, are there any custom libraries out there that would solve

Spring MVC save uploaded MultipartFile to specific folder

非 Y 不嫁゛ 提交于 2019-11-27 11:03:18
问题 I want to save uploaded images to a specific folder in a Spring 3 MVC application deployed on Tomcat My problem is that I cannot save the uploaded images files to the host where the applciation is running. Here is what I tried: private void saveFile(MultipartFile multipartFile, int id) throws Exception { String destination = "/images/" + id + "/" + multipartFile.getOriginalFilename(); File file = new File(destination); multipartFile.transferTo(file); } Result: FileNotFoundException - Yes sure

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

我怕爱的太早我们不能终老 提交于 2019-11-27 09:44:00
问题 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. 回答1: Try https://cloudinary.com/ APIs. I used it in for iOS application. 回答2: Spent half day to get imageshack worked but no luck. Tried upload image with apache htt client, but always got various errors, though upload works from html page. Then I found http://uploads.im/apidocs - no limits except 10 mb size,

How to upload file in selenium-ide 3-7-4

旧城冷巷雨未停 提交于 2019-11-27 08:52:33
问题 we need to switch to the second window select title is not working in this case how can we do that pleaseenter image description here 回答1: 1) Using sendkeys we can send file path name:- It’s the most basic technique to perform the upload of a file.Get the file upload element either by using the Id or Name. And call the Webdriver’s sendKeys() method to set the value of the file to upload. Remember following two things when uploading files in WebDriver 1)There is no need to simulate the

Codeigniters do_upload() function is not working

江枫思渺然 提交于 2019-11-27 08:50:42
问题 If I remove the part $this->upload->do_upload('filefoto') my data is saved into the database, but the image file is not saved to the folder path. enter link description here Copied from pastebin public function tambahanggota() { $this->load->library('upload'); $nmfile = "file_".time(); $config['upload_path'] = './assets/uploads/'; $config['allowed_types'] = 'gif|jpg|png|jpeg|bmp'; $config['max_size'] = '3072'; $config['max_width'] = '5000'; $config['max_height'] = '5000'; $config['file_name']

upload image binary - using imageshack api

≯℡__Kan透↙ 提交于 2019-11-27 08:25:42
问题 Moving a topic from google groups to here so it can help someone who is asking. imageshack api: http://api.imageshack.us/ the final http reqeust is returning json: {"success":true,"process_time":325,"result":{"max_filesize":5242880,"space_limit":52428800,"space_used":0,"space_left":52428800,"passed":0,"failed":0,"total":0,"images":[]}} which is not good, as it didn't upload :( it should return an image object. http://api.imageshack.us/#h.ws82a1l6pp9g as this is what the upload image section

Uploading image on server, receiving rotated image

一个人想着一个人 提交于 2019-11-27 07:22:16
问题 In my application I want to upload the image to the server and retrieve the url of uploaded image to display it in the application. I send the NSData of image. Here is my code : AsynchronousImageView *imgVw_User = (AsynchronousImageView*)[self.view viewWithTag:K_TagImageViewUser]; UIImage *UserImgForBioData = imgVw_User.image; UserImgForBioData = [UIImage imageWithCGImage:UserImgForBioData.CGImage scale:1.0f orientation:UserImgForBioData.imageOrientation]; NSData *imageData = [NSData

Android - Reduce image file size

拈花ヽ惹草 提交于 2019-11-27 06:47:42
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 least) 2 choices: Using BitmapFactory.Options.inSampleSize , to subsample original image and get a smaller image; Using Bitmap.compress to compress the image specifying compression quality. What's the best choice? I was thinking to initially resize image width/height until width or height is above 1000px (something like 1024x768 or others), then

Upload multiple images in swift using Alamofire

社会主义新天地 提交于 2019-11-27 05:22:59
问题 I'm using the following code to upload a single image to a server: private static func urlRequestWithComponents(urlString:String, parameters:Dictionary<String, String>, imageData:NSData?, imageName: String) -> (URLRequestConvertible , NSData) { // create url request to send let mutableURLRequest = NSMutableURLRequest(URL: NSURL(string: urlString)!) mutableURLRequest.HTTPMethod = Alamofire.Method.POST.rawValue let boundaryConstant = "myRandomBoundary12345"; let contentType = "multipart/form

Uploading Image from android to PHP server

我们两清 提交于 2019-11-27 04:27:33
问题 In my app i am uploading an image from my device to a local web server... after executing the code a .jpg file gets created in the server but it does not gets opened. And the size of the file in server is different from the original file. Android activity:-- public class MainActivity extends Activity { private static int RESULT_LOAD_IMAGE = 1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button