Re: WE GOT A PROBLEM
Przemysław Rejf <[email protected]> Fri, 25 Mar 2011 20:28:33 +0100
| Newsgroups | gmane.comp.apache.apreq |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------070006070406010505040506 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Przemysław Rejf <mailto:[email protected]> > 25 marca 2011 20:05 > > > Hello Brian, > > Thank you for reply, i hope that we will keep in touch. > Well, currently my script fails with error "Apache2::RequestIO::read: > (70014) End of file found" when user aborts upload so i need to work > on that. But before that the upload hook was called n times, so i > didn't know if the upload was complete or not even when the hook > wasn't called anymore and the reminder of script was executing. Beta > version of script which was runned on winxp/apache used to check the > data sent to hook: if it was empty it ment user aborted. But now im on > debian/apache and when the user aborts, the hook isnt called, so i > only get hook calls with content. Also thinking the hook might not > work as it should under mod_prel and im in progress of checking that. > > Best regards, > Waiting for reply. > > > > > > ------------------------------------------------------------------------ > > Brian McQueen <mailto:[email protected]> > 25 marca 2011 17:11 > > > Have a status bit and set it in-progress. Don't set it to complete > until you are sure its done and correct. Don't remove the info. You > want it for debugging and a complete history anyway. > > > > ------------------------------------------------------------------------ > > Przemysław Rejf <mailto:[email protected]> > 25 marca 2011 16:58 > > > Hi, How to detect file upload abort using an upload hook in perl. When > client aborts the upload i need to remove the info about the file from > the db. I can't do it size base, because before upload ends i only > have an approximate file size (request + file). I'm tryin to use > mod_perl Apache2::Connection->aborted() but so far to no effect. > ------------------------------------------------------------------------ --------------070006070406010505040506 Content-Type: multipart/related; boundary="------------010402010407010605010300" --------------010402010407010605010300 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <blockquote style="border: 0px none;" cite="mid:[email protected]" type="cite"> <table style="padding-top: 5px;" class="__pbConvTable"> <tbody> <tr> <td valign="top"><img src="cid:[email protected]" photoaddress="[email protected]" photoname="Przemysław Rejf" name="compose-unknown-contact.jpg" height="29px" width="29px"></td> <td style="padding-left: 5px;" valign="top"><a moz-do-not-send="true" href="mailto:[email protected]" style="color: rgb(0, 136, 204) ! important; text-decoration: none ! important;">Przemysław Rejf</a><br> <font color="#888888">25 marca 2011 20:05</font></td> </tr> </tbody> </table> <div style="color: rgb(136, 136, 136); margin-left: 40px;" __pbrmquotes="true" class="__pbConvBody"><br> Hello Brian, <br> <br> Thank you for reply, i hope that we will keep in touch. <br> Well, currently my script fails with error "Apache2::RequestIO::read: (70014) End of file found" when user aborts upload so i need to work on that. But before that the upload hook was called n times, so i didn't know if the upload was complete or not even when the hook wasn't called anymore and the reminder of script was executing. Beta version of script which was runned on winxp/apache used to check the data sent to hook: if it was empty it ment user aborted. But now im on debian/apache and when the user aborts, the hook isnt called, so i only get hook calls with content. Also thinking the hook might not work as it should under mod_prel and im in progress of checking that. <br> <br> Best regards, <br> Waiting for reply. <br> <br> <br> <br> <br> <br> <hr style="border-width: 1px 0pt 0pt; border-style: dotted none none; border-color: rgb(181, 181, 181) -moz-use-text-color -moz-use-text-color; height: 1px; margin: 15px 0pt 0pt;" class="__pbConvHr"><br> </div> <table style="padding-top: 5px;" class="__pbConvTable"> <tbody> <tr> <td valign="top"><img src="cid:[email protected]" photoaddress="[email protected]" photoname="Brian McQueen" name="compose-unknown-contact.jpg" height="29px" width="29px"></td> <td style="padding-left: 5px;" valign="top"><a moz-do-not-send="true" href="mailto:[email protected]" style="color: rgb(0, 136, 204) ! important; text-decoration: none ! important;">Brian McQueen</a><br> <font color="#888888">25 marca 2011 17:11</font></td> </tr> </tbody> </table> <div style="color: rgb(136, 136, 136); margin-left: 40px;" __pbrmquotes="true" class="__pbConvBody"><br> <div>Have a status bit and set it in-progress. Don't set it to complete<br> until you are sure its done and correct. Don't remove the info. You<br> want it for debugging and a complete history anyway.<br> </div> <div><!----><br> <br> <br> </div> <hr style="border-width: 1px 0pt 0pt; border-style: dotted none none; border-color: rgb(181, 181, 181) -moz-use-text-color -moz-use-text-color; height: 1px; margin: 15px 0pt 0pt;" class="__pbConvHr"><br> </div> <table style="padding-top: 5px;" class="__pbConvTable"> <tbody> <tr> <td valign="top"><img src="cid:[email protected]" photoaddress="[email protected]" photoname="Przemysław Rejf" name="compose-unknown-contact.jpg" height="29px" width="29px"></td> <td style="padding-left: 5px;" valign="top"><a moz-do-not-send="true" href="mailto:[email protected]" style="color: rgb(0, 136, 204) ! important; text-decoration: none ! important;">Przemysław Rejf</a><br> <font color="#888888">25 marca 2011 16:58</font></td> </tr> </tbody> </table> <div style="color: rgb(136, 136, 136); margin-left: 40px;" __pbrmquotes="true" class="__pbConvBody"><br> Hi, How to detect file upload abort using an upload hook in perl. When client aborts the upload i need to remove the info about the file from the db. I can't do it size base, because before upload ends i only have an approximate file size (request + file). I'm tryin to use mod_perl Apache2::Connection->aborted() but so far to no effect. <br> <hr style="border-width: 1px 0pt 0pt; border-style: dotted none none; border-color: rgb(181, 181, 181) -moz-use-text-color -moz-use-text-color; height: 1px; margin: 15px 0pt 0pt;" class="__pbConvHr"> </div> </blockquote> <br> </body> </html> --------------010402010407010605010300 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: <[email protected]> Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/4QCARXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEa AAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAAby AAAAGQAABvIAAAAZAAKgAgAEAAAAAQAAAB2gAwAEAAAAAQAAAB0AAAAA/9sAQwABAQEBAQEB AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB AQEB/9sAQwEBAQEBAQEBAQ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MQD2v8AZ60W5trfxDrMq7be6ktNPtm+U+a9sJZrog53hY/PgXJXa7s4BLRu AAcL+1z/AM0+/wC5r/8AdaoA9R0/xzceGvAfgDTrHT1ub2fwB4UukuJ3P2WFZNJhhAaKPEsz hoCxXzIlwyneeRQB4tqtve61qF1qmoyefeXkplmk8oKCxAAVFHCIihURRwqqBz1oA7rwf4z1 rwjaJpkVtb3+lrPLP9nlWSGeMzHdIsFyhZUVnBfEkEwDM+MAgAA4f9pzV4td0r4Z6rDDJbpd r4wPkzFTJG8M/h+3kUlThh5kTlG4LIVYqpJUAHPWHx70OHRvD2l6n8Of7Un0DQNJ0BL7/hL7 uy+0RaVapbrN9mt9HKRec4km8syTNH5nlmaQIGoAn/4X34T/AOiU/wDl86l/8p6AD/hffhP/ AKJT/wCXzqX/AMp6APPfib8TbT4gWnhmxsfDP/CN2vhv+2fKi/tmXWPtH9sS2Ez/ADzWFnJF 5Ulk7fM8/mefgeUsQDgH/9k= --------------010402010407010605010300-- --------------070006070406010505040506--