Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

problem with ENCTYPE="multipart/form-data"

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
balasundaram
Asked:
balasundaram
  • 4
  • 3
  • 3
  • +1
1 Solution
 
msdixonCommented:
this is probably because you have response.expires = 0, or something similar.  take that part out.
0
 
balasundaramAuthor Commented:
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
 
balasundaramAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
balasundaramAuthor Commented:
Is there any asp experts to answer my question. Please!!
0
 
msdixonCommented:
post the code for page 1
0
 
balasundaramAuthor Commented:
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
 
msdixonCommented:
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
 
MoondancerCommented:
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
 
MoondancerCommented:
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
 
MoondancerCommented:
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
 
ext2Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now