Solved

problem with  ENCTYPE="multipart/form-data"

Posted on 2001-07-30
11
526 Views
Last Modified: 2012-06-27
I'm developing an application in ASP. In certain pages I have to upload images. So in that particular page I have given <form action="http://someurl" ENCTYPE="multipart/form-data" method="post">.
I'm using vb component for uploading the file. It works fine. After finishing the page1 it goes to page2, if I click the browser back button from page2, it gives "warning:page expired" error. Please help me to sort out this problem.

All the pages whereever i'm using this ENCTYPE="multipart/form-data", I'm facing the problem.

0
Comment
Question by:balasundaram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +1
11 Comments
 
LVL 9

Expert Comment

by:msdixon
ID: 6334274
this is probably because you have response.expires = 0, or something similar.  take that part out.
0
 

Author Comment

by:balasundaram
ID: 6336820
I have not given response.expires=0, I don't know what is the reason. Refer me some sites that deal with this problem
0
 

Author Comment

by:balasundaram
ID: 6337012
The same code works in netscape but fails in ie5.
1) I'm in page1 where u have "multipart/form-data"
2) I go to page2.
3) when I click browser back button it gives the following error.

"Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.". but works fine in netscape.

Please give me a solution.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:balasundaram
ID: 6363357
Is there any asp experts to answer my question. Please!!
0
 
LVL 9

Expert Comment

by:msdixon
ID: 6364584
post the code for page 1
0
 

Author Comment

by:balasundaram
ID: 6371331
Hello msdixon,

     Due some official reason I'm not able to paste the code. This problem comes for me only when I fetch data from the database and show. In page1 I fetch data from database and I have ENCTYPE="multipart/form-data" in that page. when I click the link to page2.asp and use browswer back button it is giving problem. So all the pages where I'm fetching data from datbase(for modification), in that page I have ENCTYPE="multipart/form-data" in form action and it gives problem.

Thanks and regards,
S.Balaji
0
 
LVL 9

Expert Comment

by:msdixon
ID: 6372558
without seeing some of the code it's difficult to say what the problem is. the error 'page expired' occurs when you either 1) set response.expires to a value, or 2) set the page expiration within iis.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6845829
Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20106009.html
http://www.experts-exchange.com/questions/Q.20106884.html
http://www.experts-exchange.com/questions/Q.20112775.html
http://www.experts-exchange.com/questions/Q.20114723.html
http://www.experts-exchange.com/questions/Q.20122107.html
http://www.experts-exchange.com/questions/Q.20156030.html
http://www.experts-exchange.com/questions/Q.20165000.html
http://www.experts-exchange.com/questions/Q.20160199.html
http://www.experts-exchange.com/questions/Q.20033506.html
http://www.experts-exchange.com/questions/Q.20182723.html
http://www.experts-exchange.com/questions/Q.20187392.html
http://www.experts-exchange.com/questions/Q.20195273.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20102678.html

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6919306
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process for further information, if needed.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE KnowledgePro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20106009.html
http://www.experts-exchange.com/questions/Q.20112775.html
http://www.experts-exchange.com/questions/Q.20114723.html
http://www.experts-exchange.com/questions/Q.20122107.html
http://www.experts-exchange.com/questions/Q.20156030.html
http://www.experts-exchange.com/questions/Q.20165000.html
http://www.experts-exchange.com/questions/Q.20160199.html
http://www.experts-exchange.com/questions/Q.20182723.html
http://www.experts-exchange.com/questions/Q.20187392.html
http://www.experts-exchange.com/questions/Q.20106884.html
http://www.experts-exchange.com/questions/Q.20195273.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20102678.html

**** PLEASE DO NOT AWARD THE POINTS TO ME. *****
 
------------>  EXPERTS:  Please leave your closing recommendations if this item remains inactive another seven (7) days.  If you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed here -> http://www.experts-exchange.com/commspt/Q.20277028.html
 

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7084827
50 points refunded, item closed.
ZERO responses to all follow up requests in all open items, we had to close them all.
Moondancer - EE Moderator
0
 
LVL 2

Expert Comment

by:ext2
ID: 9752023
I'm noticing the very same problem in IE6.  If you return back to a page that itself was generated as the result of multi-part form data POST containing a file upload control, then the "Warning: Page has Expired" error results.  This problem does not occur on IE, and it does not occur if the file upload control is not present in the form.  Here is a CGI in Perl that demonstrates this problem:

==================================
#!/usr/bin/perl

use strict;

my $time = time();

print <<TEXT;
Content-type: text/html

<html><body>

time: $time

<form enctype="multipart/form-data" method="post" action="posttest.pl">

<input type="FILE" name="upload">
<input type="submit">
</form>

</body></html>
TEXT
==================================

Press SUBMIT twice and then press the back button.  IE gives the "Warning: Page has Expired" error.

I don't know why.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Connecting to multiple databases to create a Dashboard 5 65
Code Manager | Snippits 2 59
href return to normal window 5 28
Html split(text) 2 27
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question