Uploading files using HTML file input on iphone - xhtml

I am creating a web form for uploading small movie clips to a HTTP server. However, while my HTML file input control gets shown on an ipod touch, the button is completely disabled and I cannot click it to upload files.
What do I have to do to use the input control to upload files (e.g. movie clips or pictures) to my HTTP server. My page is XHTML MP 1.2 compliant.

IOS6 now allows it:
http://agileleague.com/blog/hidden-gem-of-ios6-file-uploads-in-mobile-safari/
I tested and it works. Cheers!

Related

have a editable pdf directly download from web page and not open in browser

Hello I have an editable pdf that needs to be directly downloadable. Embedding is a bit tricky so I've decided to just have it downloaded directly to user's computers. It's on a Wordpress site and I have it downloading directly but I am still able to open it in a browser.
Can someone assist?
Thank you
This is a duplicate question. As noted at (HTML) Download a PDF file instead of opening them in browser when clicked HTML5 provides an attribute that forces the browser to download files when clicked; but it's considered to be a less than desirable practice. How a user interacts with a PDF should be left up to the user.

Difference between AjaxFileUpload and AsyncFileUpload in Asp.Net Ajax Control Tool Kit

I have been learning how to use the different controls that the asp.net ajax control tool kit provides.
I came across two controls that are very confusing to me:
AjaxFileUpload and 2.AsyncFileUpload.
The 1 st control is pretty fine . I understood that AjaxFileUpload uploads the file with out having the post back unlike normal asp.net File Upload Control
But, I was not sure what again is this AsynxFileUpload. I was not able to understand difference between them
Can any one please clear me on this. If possible , any example
Thanks
AsyncFileUpload - AsyncFileUpload is an ASP.NET AJAX Control that allows you asynchronously upload files to server. The file uploading results can be checked both in the server and client sides.
AjaxFileUpload- AjaxFileUpload is an ASP.NET Ajax control which enables you to upload multiple files to the server asynchronously. When the control is used with a browser which supports the latest features of HTML5 -- such as Microsoft Internet Explorer 10, Mozilla Firefox 9, or Google Chrome 17 -- then the AjaxFileUpload supports displaying file upload progress. The control displays a progress bar as the file is being uploaded.
If a browser does not support the HTML5 File API (for example, Internet Explorer 9) then upload progress is not displayed and a throbber image is displayed instead. In other words, a busy wait image is displayed instead of actual progress.
The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers.
By taking advantage of the AllowedFileTypes property, you can restrict the types of files which can be uploaded with the AjaxFileUpload control. For example, you can prevent any file except image files (files with the extensions jpeg, png, or gif) from being uploaded. By taking advantage of the MaximumNumberOfFiles property, you can limit the number of files which can be uploaded with the control. For example, you can prevent a user from uploading more than 5 files.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx

How to play a video on the default media player on Windows?

Here is the scenario: When you click on the image on homepage, the video should open. It should not be embedded video in a browser. Video should open in a default player. No browser window.
I have a static image on my homepage. When i click this image, i just require the video to run on the default player. The video file is located on the server.
Is it possible or not? And if possible then how can we achieve it?
How about setting proper HTTP headers that enforce to download & open given video?
Content-Type: application/force-download
Content-Disposition: attachment; filename="video.avi"
To make this work you need to use the *.avi extension at the end of your file, and place it on a link.
Now, the behavior will be different on each computer. The browser will ask the user to save the file somewhere and then if the user click on it will be open with the default player. Or in some cases it may direct ash him to open it with the default player, the browser saves it and then play it.
Now so good user interface.

How to get view any file functionality as we get in gmail using asp.net

I have to create code to view any type of file in the browser as we are able to view in gmail.
Even though the user does not have the required software installed he should be able to view it.
The file should not be open in separate window.
The file should be opened in the browser itself
Thanks in advance
You'll need to process it on the server-side into some data structure that can be rendered in html/css/js on the client

upload multiple images from local drive into site

I want to provide facility to my users to upload multiple images into my website using asp.net 2.0, using single file uploader i.e. want to upload all the image file from a folder. Or suggest me any alternate way.
This is not yet possible in (X)HTML.
HTML5 will support it, and some browsers already have a working implementation, but it's still a draft and not widespread (Firefox 3.6+ and Webkit only at the moment);
SWFUpload is a common alternative but it requires Flash.
using pure HTML you can only upload single files. This is how HTML is structured. The file upload tag only takes a file, not a folder. Security reasons.
You may want to look at Silverlight / Flash for a control allowing upload of a folder.
swfUpload is really nice. And although it is flash it degrades very nicely to HTML upload if flashnot installed.

Resources