upload

PHP Upload, extract and progressbar

拥有回忆 提交于 2019-12-17 05:15:07
问题 I need help with creating a progress bar for my php upload site. I've got the upload and exctract part sorted but i need help with the progress bar. I'm not sure how to do it. Also, is there a maximum file size for the upload? HTML <?php if($message) echo "<p>$message</p>"; ?> <form enctype="multipart/form-data" method="post" action=""> <label>Choose file (.zip): <input type="file" name="zip_file" /></label> <br /> <input type="submit" value="Upload" name="submit" value="Upload" /> </form>

Summernote image upload

本小妞迷上赌 提交于 2019-12-17 04:42:10
问题 I have a problem with editor Summernote. I want to upload images into a catalog on the server. I have some script: <script type="text/javascript"> $(function () { $(\'.summernote\').summernote({ height: 200 }); $(\'.summernote\').summernote({ height:300, onImageUpload: function(files, editor, welEditable) { sendFile(files[0],editor,welEditable); } }); }); </script> <script type="text/javascript"> function sendFile(file, editor, welEditable) { data = new FormData(); data.append("file", file);

Summernote image upload

◇◆丶佛笑我妖孽 提交于 2019-12-17 04:40:11
问题 I have a problem with editor Summernote. I want to upload images into a catalog on the server. I have some script: <script type="text/javascript"> $(function () { $(\'.summernote\').summernote({ height: 200 }); $(\'.summernote\').summernote({ height:300, onImageUpload: function(files, editor, welEditable) { sendFile(files[0],editor,welEditable); } }); }); </script> <script type="text/javascript"> function sendFile(file, editor, welEditable) { data = new FormData(); data.append("file", file);

How to check if an uploaded file is an image without mime type?

倖福魔咒の 提交于 2019-12-17 04:30:41
问题 I'd like to check if an uploaded file is an image file (e.g png, jpg, jpeg, gif, bmp) or another file. The problem is that I'm using Uploadify to upload the files, which changes the mime type and gives a 'text/octal' or something as the mime type, no matter which file type you upload. Is there a way to check if the uploaded file is an image apart from checking the file extension using PHP? 回答1: You could use getimagesize() which returns zeros for size on non-images. 回答2: My thought about the

PHP post_max_size overrides upload_max_filesize

好久不见. 提交于 2019-12-17 04:25:28
问题 In my site host, I have seen (via phpinfo) that post_max_size = 8Mb upload_max_filesize = 16Mb This led me to think that I should be able to upload as file as big as 16Mb. However, when I do this through a post method (as normal), post_max_size takes over and declares that I sent too much. What is the method which permits sending a file as big as 16Mb ? GET - PUT - other ? Hope someone can clarify this for me. Simon 回答1: upload_max_filesize is the limit of any single file. post_max_size is

Multiple files upload in Codeigniter

北城余情 提交于 2019-12-17 02:16:47
问题 I want to upload multiple files using single element. So I try this example. Multiple files upload (Array) with CodeIgniter 2.0 This is my form <form enctype="multipart/form-data" class="jNice" accept-charset="utf-8" method="post" action="http://xxxx.dev/admin/add_estates"> <fieldset> <label>Title * : </label> <input type="text" class="text-long" value="" name="title"> <label>Description : </label> <textarea class="mceEditor" rows="10" cols="40" name="description"></textarea> <label>Image : <

PHP & JQuery uploader by Albanx - Blank Page

前提是你 提交于 2019-12-14 04:01:32
问题 I'm trying to implement this PHP & JQuery uploader: http://code.google.com/p/ax-jquery-multiuploader/ I didn't change anything, and used the "Form integration and file rename" example as I need to send the gallery name in the form to set the folder path. The upload is working, but as soon as it's done, I get a blank page. I don't really understand why... And the weirdest thing: every time I try to modify the upload.php file given with the package to get a message, the upload seems not to work

Multiple File Uploader Java

青春壹個敷衍的年華 提交于 2019-12-14 03:21:17
问题 I've created a program to upload images from one device to another. As it stands, the program only allows the user to upload one file at a time. If I wanted to edit the program to allow the user to upload several files at once, what would be the best way of doing it. String source1 = source.getSelectedFile().getPath(); System.out.println("Source1: " + source1); String nwdir1 = nwdir.getSelectedFile().getPath() + "\\" + filename; System.out.println("nwdir1: " + nwdir1); Path source = Paths.get

How to upload multiple images using Alamofire?

旧时模样 提交于 2019-12-14 02:59:29
问题 Here is what my CURL looks like: curl -X POST "http://localhost:2202/api/project" -H "accept: aplication/json" -H "key: x" -H "Content-Type: multipart/form-data" -F "project={"title":"Test Title","description":"Test description for new project","priority":false,"category_id":1,"location_id":1}" -F "images[]=@fileName.jpg;type=image/jpeg" The text uploading works with the following code: let parametersText = ["project":["title":requestName.text!,"description":requestDescription.text!,"priority

In my php script larger file takes longer to upload and its bound by max_execution_time

≡放荡痞女 提交于 2019-12-14 02:26:11
问题 In my php script larger file takes longer to upload and its bound by max_execution_time. when max_execution_time was set to 60 and i was uploading files under 1MB there was no problem. once i uploaded a file over 3MB i kept getting a blank screen with no error on it. Dont worry all upload limits are set and yes php display errors is on. The only way i was able to determine the problem was when i set my max_execution_time to 360. Once i did that there was time out and upload went through