upload

How do you add drag-n-drop upload ability from Outlook to a Web form?

天大地大妈咪最大 提交于 2019-12-04 06:44:32
I am looking for a way to allow users to upload Outlook emails to a web-based system in a simple manner. I can get this to work in a manual fashion for the users. They can drag and drop the email from Outlook to their desktop, which creates a .msg file. This works very nicely, esp. if there are attachments in the email which are also stored in the .msg file. This file can then be uploaded using a traditional "input type=file" html field. I would like to simplify this process, if possible. I have seen some websites that have a drag-n-drop upload feature for files that exist on the hard drive.

Why is the bitmapdata not posted to server side with flash?

心已入冬 提交于 2019-12-04 06:44:12
问题 Here is the code I used to post the bitmapdata to server side( PHP ): private function savePicToServer(bmpData:BitmapData):void { trace("in savePicToServer"); trace(bmpData); var jpgEncoder:JPGEncoder = new JPGEncoder(85); var jpgStream:ByteArray = jpgEncoder.encode(bmpData); var loader:URLLoader = new URLLoader(); var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var request:URLRequest = new URLRequest("http://localhost/test.php"); request

Simple PHP/HTML upload page - no files are saving

為{幸葍}努か 提交于 2019-12-04 06:43:25
问题 I'm new to HTML/PHP and I'm trying to create a simple php file upload page. I have this as my HTML <!DOCTYPE html> <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Upload Image" name="submit"> </form> </body> </html> I have this as my php: <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);

How to upload image and save path to database?

泄露秘密 提交于 2019-12-04 06:41:14
问题 I have a page where some images are shown (database driven). Here is the code of my gallery.php : <ul id="portfolio-list" class="gallery"> <?php $sql="select * from eikones "; $res=mysql_query($sql); $count=mysql_num_rows($res); for ( $i = 0; $i < $count; ++$i ) { $row = mysql_fetch_array( $res ); $co=$i+1; if(isset($row[ "path" ])) { $path= $row[ "path" ]; } if(isset($row[ "auxon" ])) { $auxon = $row[ "auxon" ]; } if($_SESSION['role'] == "admin") echo "<li class=\"pink\"><a href=\"$path\"

PHP CSV upload files

北战南征 提交于 2019-12-04 06:31:19
问题 I have asked a question regarding updating a csv file's contents to the db here. Now I want to add this functionality, like my db will contain url to images that are stored in a pre-specified folder on the server. The csv files will contain the urls as to where these images reside on the client side. Now when I click an upload the following should happen My file must read the location of image on the client side Must copy the image from the client to the server's pre-specified folder update

Prevent idle state when uploading (web app on iOS)

自古美人都是妖i 提交于 2019-12-04 06:28:50
问题 I'm building a web application that will be used on mobile and desktop, and after testing on iOS, I've noticed that my phone will go into an idle state (screen turns off, presented with lock screen on return) even if there is a file being uploaded (ajax upload). Is there any way to prevent this from happening? I'm testing the app by running it as a 'home-screened' web app (ie. a website you've saved to the home screen) if that makes a difference. 回答1: Originally I couldn't find an answer to

PHP upload/read files on separate drive

ε祈祈猫儿з 提交于 2019-12-04 06:24:37
问题 I need to be able to upload/view files on a separate drive. Right now, my site is in the htdocs folder on the C: drive. We have been allocated space on the D: drive to upload and view files. Using the code below, I can use scandir to view what is located in htdocs folder: <?php $dir = '../../htdocs/'; $files1 = scandir($dir); $files2 = scandir($dir, 1); print_r($files1); print_r($files2); ?> But I need to traverse back a few more to be able to get to the D: drive. I am not sure if this is

Django file upload using Form

佐手、 提交于 2019-12-04 06:12:31
问题 Hy there, my first question on this website, so sorry for my english. So i try to upload a file on a model in Django framework. class banner(models.Model): #id is made by Django name = models.CharField(max_length=255) created_by = models.CharField(max_length=255) company = models.CharField(max_length=255) register_date = models.DateField(auto_now_add=True) file = models.FileField(null=True, blank=True) file_name = models.CharField(max_length=255) this is the model class BannerForm(forms.Form)

i got a undefined index error when file upload in php

北城以北 提交于 2019-12-04 06:04:24
问题 i searched again and again but could not find the right answer. here is the situation. i got more than one forms in the same php file and below shows the code. when i echo as below echo count($_FILES["fileUploadPath"] ); it shows 0 as the count and Notice: Undefined index: addProjectFileUploadPath in C:\wamp... updated: probelm solved..... error came due to 3rd party jquery plugin called "fileinput" 回答1: add enctype="multipart/form-data" to the form 回答2: Try looking at the entire array with

Codeigniter: The filetype you are attempting to upload is not allowed

て烟熏妆下的殇ゞ 提交于 2019-12-04 05:55:07
问题 I'm using CI latest version. Got error while uploading a JPG files . I use the code from here https://www.codeigniter.com/userguide3/libraries/file_uploading.html and a little bit from Multiple files upload in Codeigniter The Controller : $config = array( 'upload_path' => 'path to upload', 'allowed_types' => 'jpg|gif|png|jpeg', 'overwrite' => 0, 'max_size' => 1024, ); $this->load->library('upload', $config); $this->upload->initialize($config); // Make sure it has been initialized if (!$this-