General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
The Best Selling PC Migration Utility.
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old February 24th, 2008, 04:21 PM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Question IE7, Firefox(lastest) and ASP file uploads?

I have run into a situation here.
I paid for an extension in DMXzone and now found out that I can't use it, sh1t!

All I wanted was to restrict the image dimensions (ie: 20x30 or 50x140)

Since the extension can't do this anymore,
what could I use instead?
or
what could I use in addition?

Is there an upload script to set these restrictions?
Is there a work around in IE7 or Firefox for this?
Cheers

Reply With Quote
  #2  
Old February 28th, 2008, 06:17 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Anyone?

Reply With Quote
  #3  
Old February 28th, 2008, 09:44 PM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Non-Contributing luser
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Centrally located far from everywhere
Posts: 37 Dngrsone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 18 m 9 sec
Reputation Power: 1
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
I'd love to help, but I have absolutely no idea what you are talking about.

Reply With Quote
  #4  
Old February 29th, 2008, 12:09 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Talking

There is a security issue in Firefox and IE7 that stops the upload script from seeing the image dimensions, ie: width, height and so on. (This is on the client side only)

All I need is a work around or a script that can do this.

The idea I though of:
Code:
upload.asp => 
A form used to upload the file
checkimg.asp => 
Check the file dimensions - if happy upload else cancel or delete

I have these: (can't get them to work together)
Quote:
upload script (can't get the uploaded file name for some reason)
script that can check the dimensions.
script to delete the image.

Reply With Quote
  #5  
Old February 29th, 2008, 12:24 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Thumbs up

Quote:
Originally Posted by Dngrsone
I'd love to help, but I have absolutely no idea what you are talking about.


It's ASP fie upload?
When you want to upload files to your webserver - images, PDF's and so on.

Reply With Quote
  #6  
Old February 29th, 2008, 06:43 AM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Non-Contributing luser
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Centrally located far from everywhere
Posts: 37 Dngrsone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 18 m 9 sec
Reputation Power: 1
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
As I recall correctly, the browsers are prevented from examining the images to prevent malicious code from being inadvertently executed by said browser. This was a known issue with IE, I am unaware if Firefox had the same issue or if the same blocking was implemented as a preventative measure.

If I understand your problem correctly, you are working on a script to automate file upload to your web server and want to prevent the user from trying to upload images that are too large? Would it not be easier to have the server reject the images?

Reply With Quote
  #7  
Old February 29th, 2008, 06:49 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Yes, I am working on a script right now.
Just my if-then-else-end if is not so good.

Reply With Quote
  #8  
Old February 29th, 2008, 07:23 AM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Non-Contributing luser
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Centrally located far from everywhere
Posts: 37 Dngrsone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 18 m 9 sec
Reputation Power: 1
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
Quote:
Originally Posted by student101
Yes, I am working on a script right now.
Just my if-then-else-end if is not so good.


Why? Not elegant enough?

Reply With Quote
  #9  
Old February 29th, 2008, 08:10 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
No,
The if then else part is not easy for me get right.

I have this part that isn't working.
Code:
if iWidth <= "300" then
response.write("Dimensions: " & iWidth & " x " & iHeight & "<br>")
response.write("Image Type: " & iType & "<br>")
else 
' This is where we delete the file!
response.write("Problem:"&"<br>"&"Dimensions are not correct."&"<br>")
response.write("Image deleted"&"<br>")
end if

That part I can't get right, it may even be the image checking part that's the problem.

Last edited by student101 : February 29th, 2008 at 08:14 AM.

Reply With Quote
  #10  
Old February 29th, 2008, 08:34 AM
student101 student101 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 83 student101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 23 m 30 sec
Reputation Power: 1
Cool working now.
Change iWidth to integer.

Thank you.

Reply With Quote
  #11  
Old February 29th, 2008, 08:49 PM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Non-Contributing luser
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Centrally located far from everywhere
Posts: 37 Dngrsone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 18 m 9 sec
Reputation Power: 1
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
Funny how asking stupid questions can sometimes lead one to the answer.

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > IE7, Firefox(lastest) and ASP file uploads?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway