I want users to pick a file from a pool (=folder) in which they should be 'locked'. I tried using this method:
<input type="file" name="image1">
Once clicked the browse button, it takes the user to a client folder. I want to take the user to the pool on the server which has the uploaded images. Is this possible?
is it possible to define a default or start up directory with input type="file" field type? If so, is it also possible to filter by another option box selection?
I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the file names in a directory. I tested with Opera7, Mozilla 1.4 and IE6 -- all on windows XP Pro
Here is the code. In all three, when I select a file, the complete path is displayed in the file input box. In Opera, reading the form field gives me the same full path. But in IE and Moz I get only the filename -- none of the path information. Code:
I'm building a system where a presenter uploads a PPT to my server and then I show it to all the participants. The problem is that most of the media in the PPT is usually linked, so I'll need to upload all that too.
Assuming I can parse the PPT and figure the exact name and location of each of the media files I need from his hard-disk, is there any way I can upload all these files automatically, without having to make the user choose each of these files manually? If that's not possible, can I atleast show the user a page with a list of input boxes of type file, pre-populated with the file-path and name of the media files I need, so that the user can just click 'Submit' without having to browse and select each of them?
Please say yes. It would be a major usability crisis if my users had to keep hitting the browse button so many times for each PPT! Especially when I know exactly what files I need and where they are! I know that this has a lot to do with browser security, but there's got to be SOME way out?
I have some ASP pages on my intranet site providing a helpdesk to my users. As part of logging a helpdesk call I am prompting them to link to a file using input type="file".
The file is on a network drive and the problem is when you click on the browse button it defaults to the clients desktop as the starting point of the browsing process. I would like to set a default location to start browsing eg etwork_serverhelpdesk to avoid confusion. Does anyone know of a way to do this ?
I have a form on which I have a INPUT Type='Reset'. On clicking this button all the fields on the form should reset except a few. Is it possible to do this by setting some property of the control or do I have to specifically write code form that?
I am using freeaspupload to upload an image file. However, i need to grab the path that is in the text box after the client browses to the file. It looks like windows security will only give me the file name. How do i get that entire path?
i need to track the source of a page which user browses ex: aboutus.html, contactus.html in which there is a link to enquiry.php where a user fills out a form. so i need to track which page the user originally came from(aboutus.html or contactus.html)
presently i am using enquiry.php to track the previous page with the following code
i need to know what is the syntax in ASP for the above statement so that i can read the hidden value into a variable called source using Request.Form and later i can read this source variable in php
I am trying to display images from an access database and going around in circles.
<% If len(rsdvd("picture"))>0 then Response.ContentType = "image/jpeg" Response.BinaryWrite rsdvd("Picture") Response.End ELSE Response.Write ("<img src=""images/sorry.gif"" alt=""Sorry, No picture."">") END IF %>
It returns this fault:
Response object, ASP 0106 (0x80020005) An unhandled data type was encountered. /description.asp, line 115
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change the input names each time it loops. Here is the code:
I require to display the content of zip file (which user is uploading) to and IIS server can any one tell me a free component which can be used in this scenario.The content i need to display is file name and path of the files in the Zip file.
I'm trying to create an XML guestbook. I'm using a form for the user to input his name, e-mail, message etc. an .asp file to update the xml file and an .htm file with javascript to display the xml file. The .asp file contains a <meta> tag to redirect the user from the .asp file to the guestbook.htm file. Following the submission of the form the script in the .asp file runs fine and updates the xml file but the problem is that when the xml file is accessed by guestbook.htm in appears to be accesing a cached version. For it to display the latest entry i need to access the xml file directly (http://....../guestbook.xml), refresh it and then return to the .htm file.
When you have a FILE input in your form (ie. <input type="file">), is there any way of forcing the filetype to a certain type (eg. .DOC, .XLS) when you hit the browse button?
I have an invisible page counter. I have been successful in getting it to work. However, I'd like to build an administrative password protected web page that shows the count. I'm not sure how to do it. Here's my code for the file and path:
sPath = "D:inetpubwwwrootmywebsite.comdatabasecounter. txt" Set filesys = CreateObject("Scripting.FileSystemObject")
Is there any way to check for .zip or .txt files prior to a file upload starting. The method I have working currently checks immediately before saving but only after the processes has uploaded the file. Can the extension (and file size) be checked as they are selected by browsinf via a form.
I suspect this is not possible but it must be possible to check them before doing anything further.
I need to make a check for file type at client end, ie allow only files that are images to be uploaded and prevent the others. I tried using the HtmlInputFile.Accept Property, but it somehow doesn't seem to work.
moreover, it claims to support only few browsers. Also, javascript in itself, gets very dirty, if i start making validations for every thing. Does ASP.NET support any control which can cause these validations? what is the most elegant way to do this?
I have a folder with eight or ten files that can be displayed in a browser. I need to display the file with the latest creation date. I imagine there is some kind of ASP function that could like at the filename's date and pick the file that meets the criteria. How can I do this?
Have been struggling over the last 2 days trying to submit an XML form through to 3rd party application. Have tried XMLHTTP, and ServerXMLHTTP, and these are all good for normal form input types but i need to submit a input type of file called 'XML', to a resource which I cant control how it processed it.
Anyone have any ideas of how to do this, I can save and open an XML document from a the dbase created string, but when I send the serverXMLHTTP variable XML = contents of the file it doesnt get processes as a noraml XML document.
Have a look at the function I have, which submits but doesnt see the submitted variable as an XML document. Code:
I used to have some static htm files which used to display data. There is a calling asp file which used to do something like below
if Request.QueryString("PageName").count = 0 then strPageNameHtm = "toc.htm" strPageNameInc = "toc.inc" else strPageNameHtm = Request.QueryString("PageName") & ".htm" strPageNameInc = Request.QueryString("PageName") & ".inc" end if strPageNameHtm = server.mapPath(strPageNameHtm)
strPageNameInc = server.mapPath(strPageNameInc) 'response.write(strPageNameHtm) set fs = server.createobject("scripting.fileSystemObject") set f = fs.openTextFile(strPageNameHtm) strSPDHtml = f.readall
The strSPDHTML info used to be displayed using a response.write(strSPDHTML). This allowed the static content to be loaded up.
I switched the static pages to be asp pages having the content come from a database. I would still like to maintain the controlling page logic. Can I modify the above section of code in anyways to access the asp page content
I'm looking to display a page and then initiate the downloading of a file. Basically trying to display a page that says the download will begin shortly, and if it doesn't, click here. Like what you see at a number sites.
I found code to initiate the download in a previous posting ("Force Download fails when I select "Open" but works when I select "Save"", posted Jan 25, 2005). The code works fine in terms of initiating the download. The problem I've encountered is that the download begins before the page itself is displayed.
I recently moved my website from a Unix hosting service to a Windows 2003 IIS hosting service. The site was converted from php/mysql to asp/mssql. The search engines still have a lot of links cached that point to php. When a user clicks the link they get a blank page that reads "No input file specified.".
This page does not appear to be a standard error page.is there a way to redirect all php page requests to my home page?