upload

Silverlight 4 RC File Upload with Upload Progress: how to?

≡放荡痞女 提交于 2019-11-29 22:56:53
问题 It's been stated that one of the new features of Silverlight 4 RC is that it now supports upload progress. I'm assuming this means it's possible to make an upload file progress bar without "chunking" but I can't figure out how to do this, so how do we do this? Source code examples would be great. Thanks! 回答1: Ok, after lots of playing I've got it figured out: private void UploadFile(string url, CustomPostDataInfo pdi) { // Use the client http stack! //HttpWebRequest webRequest =

multi file upload with play?

强颜欢笑 提交于 2019-11-29 22:42:21
问题 I try to upload multiple files with one request. My code looks like the following: <form action="/application/overviewsubmit" method="POST" enctype="multipart/form-data"> <input type="file" name="files"> <input type="file" name="files"> <input type="submit" value="Run..."> </form> And the controller: public static void overviewSubmit(List<File> files){ System.out.println(files); } If both files are set by the user it works. But if the user chooses only one of them and leaves the other one

Go: Tracking POST request progress

被刻印的时光 ゝ 提交于 2019-11-29 22:34:03
问题 I'm coding a ShareX clone for Linux in Go that uploads files and images to file sharing services through http POST requests. I'm currently using http.Client and Do() to send my requests, but I'd like to be able to track the upload progress for bigger files that take up to a minute to upload. The only way I can think of at the moment is manually opening a TCP connection on port 80 to the website and write the HTTP request in chunks, but I don't know if it would work on https sites and I'm not

Apache Commons File Upload - Stream ended unexpectedly

本小妞迷上赌 提交于 2019-11-29 21:05:29
问题 Well, I have to say that so far, this one has me stumped. Our web application, which is running in Tomcat 6.0.18 is failing during file upload, but only when the client machine is a windows machine, only for some machines, and for all browsers, not just IE . There is a stack trace in the logs, which seems to indicate that the client either closed the connection, or the stream was somehow corrupted. The root cause in the stack trace is given as follows: Caused by: org.apache.commons.fileupload

How to limit upload file size in express.js

别来无恙 提交于 2019-11-29 20:32:36
问题 i got this error says error:request entity too large when uploading a video about 30MB, here is the setting code app.use(express.bodyParser({ uploadDir:'./Temp', maxFieldsSize:'2 * 1024 * 1024 * 1024 ', })); am not sure how to set the maxFieldsSize property, need some help!!! 回答1: Express uses connect middleware, you can specify the file upload size by using the following app.use(express.limit('4M')); Connect Limit middleware 回答2: // Comment sart // app.use(express.bodyParser({ // uploadDir:'

XMLHttpRequest Level 2 - Determinate if upload finished

喜欢而已 提交于 2019-11-29 20:29:14
I am using ajax for file uploads. After the file is uploaded, php should check it (mime, size, virus (clamscan) and more) - this takes some seconds for larger files. While the file is uploading, a HTML5 <progress> is filling, when the file is ready and PHP starts checking, the progress should switch to indeterminate. I thought of to ways to do this (which both do not work): Checking upload.onload event xhr.upload.addEventListener("load", function (e) { $("#uploadprogress").attr("value", false); $("#uploadprogress").attr("max", false); $("#progress").text("Checking file..."); }); This doesn't

Is there a Public FTP server to test upload and download? [closed]

让人想犯罪 __ 提交于 2019-11-29 18:58:30
What I want to do is measure broadband speed using c#. To do this, I use NetworkInterface.BytesReceived and BytesSent to get the current amount of bytes sent and received from my network adapter and get the DateTime . Then I download/upload a file and get the BytesReceived / BytesSent and DateTime again. The download/upload speed is just the the difference between the BytesReceived / BytesSent divided by the time difference. Now I am wondering if there is a public FTP server where I can download and upload files. Tele2 provides ftp://speedtest.tele2.net , you can log in as anonymous and upload

symfony2 store uploaded file non rootweb

馋奶兔 提交于 2019-11-29 18:13:23
I have problem with uploading files, I'm saving uploaded files in a non public folder (non webroot folder), and then I want to get the webPAth of all uploaded files to use them in a video gallery. $videos = $repository->getVideosThumbs($this->getUser()); and then in my twig {% for video in videos %} <a href ="{{ path('neoctus_videobundle_default_watchvideo', {'id' : video.id, 'salt' : app.user.salt }) }}" > <img id="{{ video.id }}" src="/uploads/images/{{video.imgPath}}" alt="1st image description" height="150" width="150" /> </a> {% endfor %} but I can not access the pictures because the

Opencart - Customer uploads different files to one product with different responses from the site

白昼怎懂夜的黑 提交于 2019-11-29 18:10:12
I am using Opencart 1.5.6 and I have two file upload options for one product. One option is an image and the other is a video. I am setting it up to show a preview of the image once they upload. In catalog/controller/product/product.php under public function upload() I have changed the code as follows to get a thumbnail image and change the success message: if (!$json && is_uploaded_file($this->request->files['file']['tmp_name']) && file_exists($this->request->files['file']['tmp_name'])) { $file = basename($filename) . '.' . md5(mt_rand()); // Hide the uploaded file name so people can not link

Uploading IOS app to app store. Seems to freeze and internet stop working

我的梦境 提交于 2019-11-29 17:37:08
问题 In Xcode i have have created an archive of the app. Verified it no problem. then when i click Distribute i get as far as "Your application is being uploaded" and shows the progress bar. The bar never moves and after a few minutes my internet breaks. i need to restart my router to get the internet back. one of the times i received this error "SSL error occured and a secure connection to the server cannot be made" Anyone ever experienced this or have an idea of whats happening? Thanks 回答1: I