upload

Unable to test HTTP PUT-based file upload via Squid Proxy

会有一股神秘感。 提交于 2019-12-05 18:39:42
I can upload a file to my Apache web server using Curl just fine: echo "[$(date)] file contents." | curl -T - http://WEB-SERVER/upload/sample.put However, if I put a Squid proxy server in between, then I am not able to: echo "[$(date)] file contents." | curl -x http://SQUID-PROXY:3128 -T - http://WEB-SERVER/upload/sample.put Curl reports the following error: Note: This error response was in HTML format, but I've removed the tags for ease of reading. ERROR: The requested URL could not be retrieved ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://WEB-SERVER

Can the server use a file from a client without uploading it to the server? ASP.NET

柔情痞子 提交于 2019-12-05 18:24:22
I was wondering, at the moment, the client uploads a file to a directory on the server where the server can then use the file (csv file) to update a SQL database. Is that the only way the server can use that file? For it to first be uploaded to the server? Or can you use that file without uploading it to a directory of the server? (using visual studio 2012, C# and asp.net) Code update--- asp Uploading the file. (I know the code can be cleaner an written better, but my testing code is never clean) //Uplod file to the server FileUpload1.SaveAs(serverUploadDir + FileUpload1.FileName); //Use the

Android Uploading large files

做~自己de王妃 提交于 2019-12-05 17:32:55
I am pretty much new to android development, and I am trying to upload a file of size 25 to 50 MB to a web server, and am getting the out of memory error. I am struggling for past 2 days and have no clue, where I am going wrong. Got any suggestions on where I am going wrong? The code I am working on is private FileInputStream fileInputStream = null; private int bytesavailable,buffersize,bytesRead ; byte buff[]; int maxBufferSize = 1*1024*1024; String server_url ="server_url"; DataOutputStream dos; String Builder response = new String Builder(); String body = "boundary values"; String body2 =

jquery + flash: looking for plugin that resize images before upload [closed]

不羁的心 提交于 2019-12-05 16:51:41
i'm looking for a jquery plugin that can upload multiple images. I've tried uploadify and it works well. But with huge images it's very slow. is There anything like uploadify that resize also the images before upload them? thanks Checkout http://www.plupload.com/ Demo http://www.plupload.com/example_queuewidget.php It was just released a few days ago (3rd Feb) and has the functionality you are looking for (Client-side resizing and chunking specifically can both improve performance). It's core isn't based on jQuery, but it has a jQuery upload widget that's plug-and-play. http://www

CodeIgniter Multiple File Upload not working

你说的曾经没有我的故事 提交于 2019-12-05 16:48:13
I am trying upload multiple file in a folder but it's giving the error "You did not select a file to upload." A PHP Error was encountered Severity: Warning Message: is_uploaded_file() expects parameter 1 to be string, array given Filename: libraries/Upload.php Line Number: 412 Backtrace: File: C:\wamp\www\mshaadi\application\controllers\Email.php Line: 55 Function: do_upload File: C:\wamp\www\mshaadi\index.php Line: 293 Function: require_once Controller $conf['upload_path'] = './images'; $conf['allowed_types'] = 'doc|docx|pdf|jpg|gif|jpeg|png'; $conf['max_size'] = '9999000'; $conf['max_width']

How to upload file via the JSON interface in Rails

一笑奈何 提交于 2019-12-05 16:26:23
I have a web service in Rails which among all else should provide file upload functionality to the clients. The clients all use JSON to talk to the webservice. I use the Paperclip plugin for upload management. The problem is I do not know how to upload a file via JSON. All works in the web formular, but I cannot find information on how to consctruct my JSON Request to send files to the server. Can somebody help out? Regards, Angel Kafazov You don't need to use Paperclip for uploading JSON files in rails. Use the following syntax inserting the file upload field to your view. To read the JSON

Uploadify FOLDER

巧了我就是萌 提交于 2019-12-05 16:07:40
I am using Uploadify to upload Files and using Codeigniter framework. Here is my Uploadify code : $("#change_profile_icon").uploadify({ 'uploader' : '/project/style/scripts/crop/uploadify/uploadify.swf', 'script' : 'http://localhost/project/pages/profile_icon', 'cancelImg' : '/project/style/scripts/crop/uploadify/cancel.png', 'buttonText' :'Upload image', 'width' : '110', 'height' : '30', 'queueID' : 'fileQueue', 'auto' : true, 'scriptData' :{username :"<?php echo $this->session->userdata('username');?>",folder:"honda"}, 'queueSizeLimit' : 1, 'multi' : false, 'fileDesc' : 'jpg', 'fileExt' : '*

Upload a library photo with Android web browser

↘锁芯ラ 提交于 2019-12-05 16:02:43
As is disabled on Android, is it possible to upload a photo from library, in Browser somehow? Camera/Photo Library JavaScript API? Thanks The webkit browser in version 2.2 (Froyo) supports file uploads via the typical HTML form mechanism: I'm not sure if there is a specific place you want to upload pictures to, but I just wrote an app that does this. It uploads to Flickr and works with Android 1.6. Take a look at http://www.flickr.com/services/api/ Multi-part POST is the tricky part, and to do that you need to include apache-mime4j-0.6.jar and httpmime-4.0.3.jar. MultipartEntity mp = new

How to handle cross domain iframe file upload json response?

守給你的承諾、 提交于 2019-12-05 15:59:16
I'm building an files upload API. Basically, the user will have to POST the files with his/her api_key + signature to my web service. Then my web service replies back with a JSON response. I'm wondering how can this process work asynchronously? Assuming that the user POST the request in a form setting the target to an iframe. The JSON response will be sent back to the user on his/her iframe with content type set as "text/html". It is set as "text/html" instead of "application/json" because I want to avoid having a "pre" tag injected by the browser around the JSON response. Anyway, how does the

Rails AJAX upload form with Remotipart

拥有回忆 提交于 2019-12-05 15:57:56
I've been bashing my head trying to get an AJAX upload form working. I'm using Rails 3.2. I put gem "remotipart", "~> 1.0" in my Gemfile, ran bundle install and it installed successfully. I previously had this non-ajax upload form, which I added :remote => true to as per the literature on the github page : <%= form_tag "/administration/data_imports", :multipart => true, :remote => true %> <label for="file">Input File</label> <%= file_field_tag "file" %> <button type="submit">Import Data</button> </form> and this in my data_imports_controller create action: def create file = params[:file]