upload

Uploading contents of a text file to a string in memory using the “Upload” widget in Vaadin 14

与世无争的帅哥 提交于 2020-01-06 02:46:05
问题 I know Vaadin 14 offers the Upload component for the user to either pick a file(s) to upload or to drag-and-drop file(s). But I am not sure how to use it. I want the contents of a plain text file on the web browser’s machine to load into memory as a String or CharSequence on the server machine. While the description page for that component has some examples, I could use a complete yet minimal example of loading plain text. 回答1: Here is an example view in Vaadin 14.1.0.alpha3. I am not an

PHP/MYSQL Upload, import .csv file to mysql-process-table design

[亡魂溺海] 提交于 2020-01-06 01:54:19
问题 I want to let users upload their contacts from a .csv file (exported from various contact management programs) to the server and then save it in mysql. From what I've read on SO and elsewhere, MYSQL can import the data using LOAD DATA INFILE. It also seems like there is a LOCAL option to get it from the client side. My three-part question is: Do I need to use file upload to get the file to the server or can I directly access it via the LOCAL option of LOAD DATA INFILE? Since the application

Setting upload_max_filesize (etc) for large file uploads

元气小坏坏 提交于 2020-01-05 11:57:06
问题 I'm trying to upload files via this jQuery plugin: http://aquantum-demo.appspot.com/file-upload I am able to upload files up to 1.2GB without a problem. The next largest file I've tried is 1.8GB and this upload fails. I have set: max_execution_time = 0 max_input_time = 0 memory_limit = 4000M post_max_size = 3500M upload_max_filesize = 3000M What should these values be if this isn't working? I need to upload video files that are up to 2GB via this method. Thanks in advance! 回答1: possibly you

uploading files stuck on pending

荒凉一梦 提交于 2020-01-05 10:32:23
问题 I have a web application running on server 2012 with IIS and php version 5.5.11. I have a simple form for uploading files to the server <div class="pdfupload"> <h1>upload files</h1> <form action="/<?php echo $user?>/upload" method="POST" enctype="multipart/form-data"> <input type="file" name="files[]" multiple /> <input type="hidden" name="test_id" /> <input type="hidden" name="points" /> <input class="uploadpdfsubmit" type="submit" value="upload files" /> </form> </div> the form worked fine

upload images through php using unique file names

偶尔善良 提交于 2020-01-05 09:07:30
问题 I am currently in the process of writing a mobile app with the help of phonegap. One of the few features that I would like this app to have is the ability to capture an image and upload it to a remote server... I currently have the image capturing and uploading/emailing portion working fine with a compiled apk... but in my php, I am currently naming the images "image[insert random number from 10 to 20]... The problem here is that the numbers can be repeated and the images can be overwritten..

Allowed memory size of 67108864 bytes exhausted ERROR when uploading a photo

心不动则不痛 提交于 2020-01-05 08:02:57
问题 I have a little problem with my website. People use this page to create a post on my site, you can attach photos to it. All photos were working ecept that one. ( see below for the link ) When I try to upload it on the "post" page it says: My girlfriend is the one that is trying to upload it , before uploading it she rotate the picture with windows 7 ( in preview mode ) so the image would be on the right side. PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate

Uploading to own YouTube account from iOS app

橙三吉。 提交于 2020-01-05 07:31:31
问题 The app should be uploading videos from iOS devices directly to our own YouTube account (not user's account). In every scenario I came across you need an Access Token that you can get only from user logging in through OAuth2 (window popping up). Obviously, we can't give everyone username and password from company account. I was imagining using some key that uniquely identifies the app and YouTube user account to use. Any solution / pointer? Thanks. 回答1: I ended up using deprecated Client

UploadedFile is null when submit jsf upload request with Tomahawk

浪尽此生 提交于 2020-01-05 06:27:42
问题 trying to upload a file on a facelets page using Tomahawk2.0 1.1.11. But I get a null pointer exception and I see in the debugger, the uploadedFile variable is not being set in the bean. Any ideas why the bean isn't being set? The t:inputFileUpload component is otherwise rendering and functioning as I would expect. page: <h:form enctype="multipart/form-data"> <t:inputFileUpload value="#{Bean.uploadedFile}" /> <h:commandButton type="submit" id="Submit" value="Submit" action="#{Bean.submit}"/>

Use WatiN for automation upload file on the website

允我心安 提交于 2020-01-05 05:32:25
问题 I need upload file on the website. But Have a problem, i can't choose file automatic in code. Always browser show me choose file window. What wrong in my code? IE ie = new IE("https://www.xxxx.com/WFrmlogin.aspx"); FileUploadDialogHandler uploadHandler = new FileUploadDialogHandler(@"D:\065-6405_URGENT.xls"); ie.WaitForComplete(); ie.TextField(Find.ById("txtUser")).TypeText("login"); ie.TextField(Find.ById("txtPassWord")).TypeText("***"); ie.Button(Find.ById("btnok")).Click(); ie

xhr response with for loop not working

霸气de小男生 提交于 2020-01-05 02:50:10
问题 i have xhr with for loop and it work very rare for(var i = 0; i < this.files.length; i++) { var xhr = new XMLHttpRequest(); xhr.upload.onprogress = function(e) { }; xhr.onreadystatechange = function(e) { if(this.readyState === 4) { console.log(xhr.responseText); } }; var formdata = new FormData(); formdata.append("files", this.files[i]); console.log(this.files[i]); xhr.open('POST', 'slike.php'); xhr.send(formdata); } I'm calling this slike.php. And it work very well, but on responseText, it's