Is there a way to check the file size without uploading it?
Check it at the source?
If a large file (4m) is accidentally selected, it takes some time before the
upload is complete.
Is there a way to determine the directory from which the file is being
uploaded (source directory)?
Thanks.
Ken 12 2658
On Mon, 06 Sep 2004 10:59:14 GMT, "Ken" <kk******@wi.rr.com> wrote: Is there a way to check the file size without uploading it?
Check it at the source?
If a large file (4m) is accidentally selected, it takes some time before the upload is complete.
Is there a way to determine the directory from which the file is being uploaded (source directory)?
Thanks.
Ken
Short and sweet answer.... Nope.
Regards,
Ian
--
Ian.H
digiServ Network
London, UK http://digiserv.net/
Ken wrote: Is there a way to check the file size without uploading it?
Check it at the source?
If a large file (4m) is accidentally selected, it takes some time before the upload is complete.
Is there a way to determine the directory from which the file is being uploaded (source directory)?
Thanks.
Ken
use javascript and test on the client side or no.
How do I check file size in JavaScript?
Ken
"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message
news:41***********************@news.xs4all.nl... Ken wrote: Is there a way to check the file size without uploading it?
Check it at the source?
If a large file (4m) is accidentally selected, it takes some time before the upload is complete.
Is there a way to determine the directory from which the file is being uploaded (source directory)?
Thanks.
Ken
use javascript and test on the client side or no.
*** Pjotr Wedersteers escribió/wrote (Mon, 6 Sep 2004 19:12:36 +0200): use javascript and test on the client side or no.
One good reason why there aren't JavaScript viruses is that this language
cannot access the file system.
(So I guess you can do it with Internet Explorer & client-side VBScript ;-)
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
On Mon, 6 Sep 2004 20:18:44 +0200, "Alvaro G. Vicario"
<kA*****************@terra.es> wrote: *** Pjotr Wedersteers escribió/wrote (Mon, 6 Sep 2004 19:12:36 +0200): use javascript and test on the client side or no. One good reason why there aren't JavaScript viruses is that this language cannot access the file system.
There isn't!? I have about 30 or so ;)
(So I guess you can do it with Internet Explorer & client-side VBScript ;-)
JS can access the FileSystemObject in the same way VBS can.
Regards,
Ian
--
Ian.H
digiServ Network
London, UK http://digiserv.net/
[ Tofu corrected: <http://tk.digiserv.net/tofu.txt> ] "Pjotr Wedersteers" <x3****@westerterp.com> wrote in message news:41***********************@news.xs4all.nl.. . Ken wrote: > Is there a way to check the file size without uploading it? > > Check it at the source? > > If a large file (4m) is accidentally selected, it takes some time > before the upload is complete. > > Is there a way to determine the directory from which the file is being > uploaded (source directory)? > > Thanks. > > Ken use javascript and test on the client side or no.
On Mon, 6 Sep 2004 13:08:44 -0500, "Ken" <kk******@wi.rr.com> wrote:
How do I check file size in JavaScript?
Ken
Access the FileSystemObject, BUT! (and it's a huge BUT), don't ever
expect it to be initiated.. no one in their right mind surfs with
ExploitX enabled.. and if they do, they have no right operating an
Internet connected box.
Any sites I access asking for ExploitX get null-routed to make sure I
never reach them again by "accident".
Regards,
Ian
--
Ian.H
digiServ Network
London, UK http://digiserv.net/
.oO(Ian.H) On Mon, 6 Sep 2004 20:18:44 +0200, "Alvaro G. Vicario" <kA*****************@terra.es> wrote:
(So I guess you can do it with Internet Explorer & client-side VBScript ;-)
JS can access the FileSystemObject in the same way VBS can.
JS != ActiveScripting
Micha
*** Ian.H escribió/wrote (Mon, 06 Sep 2004 19:29:12 GMT): JS can access the FileSystemObject in the same way VBS can.
It'd be nice to see a piece of code that proves that.
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
On Mon, 6 Sep 2004 22:26:51 +0200, "Alvaro G. Vicario"
<kA*****************@terra.es> wrote: *** Ian.H escribió/wrote (Mon, 06 Sep 2004 19:29:12 GMT): JS can access the FileSystemObject in the same way VBS can.
It'd be nice to see a piece of code that proves that.
Missed the followups previously...
I've got a smallish collection of javascript code that does just this.
One example:
WScript.Echo("Virus JS.Hatred v0.1 is here. Hooray!!!")
//`
try{
var FSO = WScript.CreateObject("Scripting.FileSystemObject")
var WsShell = WScript.CreateObject("WScript.Shell")
var OpenBody = FSO.OpenTextFile(WScript.ScriptFullName, 1)
Note, this is from one of many viruses.. so:
"One good reason why there aren't JavaScript viruses is that this
language cannot access the file system."
was is not true either =)
Regards,
Ian
--
Ian.H
digiServ Network
London, UK http://digiserv.net/
On Mon, 06 Sep 2004 21:40:34 +0200, Michael Fesser <ne*****@gmx.net>
wrote: .oO(Ian.H)
On Mon, 6 Sep 2004 20:18:44 +0200, "Alvaro G. Vicario" <kA*****************@terra.es> wrote:
(So I guess you can do it with Internet Explorer & client-side VBScript ;-)
JS can access the FileSystemObject in the same way VBS can.
JS != ActiveScripting
Micha
Did I miss something?
Message-ID: <41***********************@news.xs4all.nl>
"use javascript and test on the client side or no."
Message-ID: <8a****************************@40tude.net>
"One good reason why there aren't JavaScript viruses is that this
language cannot access the file system."
My reply was based on the javascript discussion.
Regards,
Ian
--
Ian.H
digiServ Network
London, UK http://digiserv.net/
*** Ian.H escribió/wrote (Thu, 16 Sep 2004 15:36:03 GMT): I've got a smallish collection of javascript code that does just this. One example:
WScript.Echo("Virus JS.Hatred v0.1 is here. Hooray!!!") //` try{ var FSO = WScript.CreateObject("Scripting.FileSystemObject") var WsShell = WScript.CreateObject("WScript.Shell") var OpenBody = FSO.OpenTextFile(WScript.ScriptFullName, 1)
You haven't tried your code in a web page, have you?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Álvaro G. Vicario">
</head>
<body>
<script language="JavaScript" type="text/javascript"><!--
WScript.Echo("Hello, World!")
//--></script>
</body>
</html>
Mozilla:
Error: WScript is not defined
Internet Explorer:
Error: 'WScript' is not defined
Windows Scripting is not the same as web browsers' JavaScript.
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
.oO(Ian.H) My reply was based on the javascript discussion.
I think you're talking about Microsoft's implementation and
"enhancements" to the Javascript language and its platform-dependent
objects. Of course you can do all that crap in Internet Explorer, but
this has nothing to do with Javascript.
Micha This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Smithz |
last post by:
Hi There,
I have a PHP script that sends an email with attachment and works great when
provided the path to the file to send.
However this file needs to be on the same server as the script.
...
|
by: M P |
last post by:
Can you help me find an asp code that will upload a file from my PC to web
server?
Mark
|
by: Skc |
last post by:
I have a .txt which has been exported as a .csv from an external source.
What i need to do is to import this into SQL2000 (into a table) but I need to
do special things on the data:
1. I need to...
|
by: Lokkju |
last post by:
I am pretty much lost here - I am trying to create a managed c++
wrapper for this dll, so that I can use it from c#/vb.net, however, it
does not conform to any standard style of coding I have seen....
|
by: BW |
last post by:
I am creating an upload/download function for an extranet site. Files will
be uploaded to directory based upon the users login and associated project.
The function works as long as I use "c:\Temp"...
|
by: Dan |
last post by:
Hi,
I know this code is not entirely javascript, but bare with me. Can you
please tell me why this does not work:
page: filemanager.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
|
by: j7.henry |
last post by:
I am trying to pull specific data that is in a comma delimited file
into a web page. So if my comma delimited file looks like:
Name,Address,Zip
Fred,123 Elm,66666
Mike,23 Jump,11111
I would...
|
by: forest demon |
last post by:
for example, let's say I do something like,
System.Diagnostics.Process.Start("notepad.exe","sample.txt");
if the user does a SaveAs (in notepad), how can i capture the path that
the user...
|
by: cleary1981 |
last post by:
Hi, I have created a script in PHP thats generates an SVG image. Want I want to do is have PHP save this as example.svg. Can this be done? Heres my code
<?php
require "config.php";
$proj_id =...
|
by: premprakashbhati |
last post by:
hi, good evening..
i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button()
here is the code ...its work fine...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |