upload

Uploading an image from iPhone to .net ashx handler

五迷三道 提交于 2019-12-11 06:23:47
问题 I'm working on uploading an image from an iPhone to my server with an ashx script receiving the image. The problem I'm having is that regardless of everything I've tried context.Request.Files is empty. Here is my xcode code NSData *imageData = [[appDelegate currentProjectData] objectForKey:@"frontImage"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.****.com/iPhoneJpgUploadHandler.ashx"]]; [request setHTTPMethod:@"POST"]; NSString

Using PHP to upload images to a folder while saving descriptions to a database

﹥>﹥吖頭↗ 提交于 2019-12-11 06:19:14
问题 The user decides to upload multiple images for their classified listing. What I need to have happen is to: Upload the images with descriptions for each of the images - SOLVED Save the images to a folder specified Save the image location to my MySQL database with descriptions - SOLVED Be able to call the images and descriptions in their classified listing in kind of a gallery setting My table schema is set up like this (simplified): ad_id | member_id | category | subcategory | ... | photo_0

Flex 4 FileReference Issues With Firefox

梦想的初衷 提交于 2019-12-11 06:16:07
问题 I'm trying to perform a file upload using a FileReference from a Flex app running in Firefox 4. However when I attempt to call the upload() method, the Filereference throws an IOError with the following Error #2038: File I/O Error. URL: http://localhost:8080/admin/upload If I don't explicitly add a listener for the IOErrorEvent, then I get a Flash player popup stating SecurityError: Error #2000: No active security context. The request doens't even hit my server (I can verify by placing

Upload files from phone intent

心已入冬 提交于 2019-12-11 06:07:46
问题 I've an android application where in an activity the user chooses a picture from the phone's memory to upload it to the server using the Action Pick intent Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(i, RESULT_LOAD_IMAGE); However; now the requirements has changed and the client wants to upload any file with any extension, what intent should I use in order to open the phone's memory (like the file manager)

Is it possible to upload something to SkyDrive via .NET?

我是研究僧i 提交于 2019-12-11 06:07:15
问题 I've spotted this question: Does Microsoft SkyDrive have an API? But not having an API doesn't mean there isn't some way of uploading files to the SkyDrive! 回答1: Break out an HTTP recorder and learn the "API". HttpFox works. I use HTTPScoop on OSX. 来源: https://stackoverflow.com/questions/904929/is-it-possible-to-upload-something-to-skydrive-via-net

Can't upload sound files in visualstudios server

雨燕双飞 提交于 2019-12-11 05:59:12
问题 Whenever I try to upload a sound file IO get the error "The connection to the server was reset while the page was loading.". The sound file is 5.58mb, an .OGG. My server is visual studios 9 (2008). The form uses enctype="multipart/form-data". I have a feeling it may be a filesize limit but I dont know where to change the file length allowed. How do I fix a "The connection to the server was reset while the page was loading." problem in my code? 回答1: In the web.config: <system.web> <httpRuntime

Django displaying upload file content

两盒软妹~` 提交于 2019-12-11 05:55:59
问题 I have an application that loads different documents to the server, and allows users to read documents' content. I am uploading the documents to the server, and then I try to read the courses by id, like: def view_course(request,id): u = Courses.objects.get(pk=id) etc But I don't find anywhere: how can I actually read the content of a /.doc/.pdf/.txt and display it on a web page? 回答1: Reading plain text files is trivial, while PDF and Word processing is not. For the latter two you'll have to

Rails file_field size restrictions

。_饼干妹妹 提交于 2019-12-11 05:54:59
问题 I currently have the below for uploading images, but I also want to add a restriction that prevents users from uploading any file less than 50px in height . Is this possible? file_field "form", "image", accept: 'image/png,image/gif,image/jpeg' 回答1: Try this one, Maybe this will help you: Reference validate :validate_image_size def validate_image_size image = MiniMagick::Image.open(picture.path) unless image[:height] < 50 errors.add :image, "should be 50px minimum!" end end This will work for

better method to upload/download multiple files to the server

徘徊边缘 提交于 2019-12-11 05:44:18
问题 I tried to use : @Override protected String doInBackground(Void... params) { // TODO Auto-generated method stub String path = "http://192.168.1.112/johnson/learn/android/uploads/"; String sUrl1 = "productSock"; String sUrl2 = "productHistory"; downloadFile(path, sUrl2); downloadFile(path, sUrl1); return null; } private boolean downloadFile(String path, String sUrl) { // TODO Auto-generated method stub try { String toUrl = path + sUrl; URL url = new URL(toUrl); URLConnection connection = url

ASIFormDataRequest upload video works in iPhone simulator but fails with iPhone for files over 1.5 MB

心不动则不痛 提交于 2019-12-11 05:28:37
问题 I am using ASIHTTPFormDataRequest to upload a video file. I know my code works because when I upload a video under 1.5 MB (low quality under 1 minute 40 seconds) on the iPhone it successfully posts. I was convinced it was a server issue so we did every test ever and came back with no success. It wasn't until the other day that I was able to successfully upload a large file within the iPhone simulator. The file was over 5 MB and high quality. So I am forced to belive that it has something to