[openupload-devel] [Fwd: Re: zip file error after download.]
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2009-08-25 18:33:51
|
-------- Messaggio Originale --------
Oggetto: Re: [openupload-devel] zip file error after download.
Data: Tue, 25 Aug 2009 20:28:58 +0200
Da: Alessandro Briosi <ts...@br...>
A: Alexandr Bakuntsev <Ale...@fi...>
Referenze: <H0000086002642ed.1251221136.mail.fifthlight.ca@MHS>
please note that this is more a work around than a real fix ...
I'll create a bug report to not forget about it.
Alessandro
Alexandr Bakuntsev ha scritto:
> Thank you!
> Now is fine!
>
> Best regards,
> Alexandr
>
> -----Original Message-----
> From: Alessandro Briosi [mailto:ts...@br...]
> Sent: Tuesday, August 25, 2009 1:13 PM
> To: Alexandr Bakuntsev
> Cc: OpenUpload Delvel and General talk
> Subject: Re: [openupload-devel] zip file error after download.
>
> Hi, I believe it's a problem with the way I'm handling the mime types.
> Right now I declare the file from what the browser sends me, but I
> should be checking mime types on the server ...
>
> Just to check it out try replacing the line 400 of
> lib/modules/default/files.inc.php
> from:
> header('Content-Type: '.$finfo[$num]['mime']);
> to
> header('Content-Type: application/octet-stream');
>
> And redo the download ...
> This should fix the problem (at least I hope)
>
> Alessandro
>
> P.S. can u check what the database mime field contains on that file?
>
> Alexandr Bakuntsev ha scritto:
>> Hi Alessandro,
>>
>> Thank you for quick response!
>>
>> You understood problem very well. Let me describe this problem with
> more
>> details:
>> 1) Browser: IE7. File uploaded without extra compression (plugin
>> "compress" was removed from config.inc.php). When somebody download
> file
>> with any browser and want to open it, then build-in to Win XP zip
> shows
>> message that file is invalid or corrupted, 7-zip opens file and shows
>> inside some link icon (not archived files). Once you click on link
> icon,
>> it shows archive content.
>> 2) File uploaded with FireFox. No problems with zip files at all.
>>
>> Can it be some misconfiguration from my side or what?
>>
>> Thank you for your advice and help!
>>
>> Best regards,
>> Alexandr
>>
>>
>> -----Original Message-----
>> From: Alessandro Briosi [mailto:ts...@br...]
>> Sent: Tuesday, August 25, 2009 5:44 AM
>> To: Alexandr Bakuntsev
>> Cc: OpenUpload Delvel and General talk
>> Subject: Re: [openupload-devel] zip file error after download.
>>
>> Hi Alexandr,
>> please subscribe to the list (it is a member only list) [1] or open a
>> support request [2].
>>
>> I'm not sure I properly understand what the problem is...
>> For what I understood if you upload a zip file, once you download it
> ,
>> it is not correctly working (corrupted)? (opening with windows xp
> native
>> zip won't work?)
>>
>> What is the browser used for upload/download?
>>
>> Am I correct to suppose the zip file was uploaded as a zip file, or
> are
>> you using the compression plugin? If the latter maybe it is some
>> misconfiguration...
>>
>> Let me know.
>> Alessandro
>>
>> [1] https://lists.sourceforge.net/lists/listinfo/openupload-devel
>> [2] http://sourceforge.net/tracker/?group_id=242018&atid=1117805
>>
>> Alexandr Bakuntsev ha scritto:
>>> Hi,
>>>
>>>
>>>
>>> I having problem with zip archive files after download. Build-in to
> MS
>>> Windows zip software do not want open archive file at all, 7-zip open
>
>>> files and shows shared link inside. After I click on link icon, it
>> shows
>>> directory and after that everything fine.
>>>
>>>
>>>
>>> Please, advice what I should do to prevent this situation.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Alexandr
>>>
>>>
>>>
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
>> ------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>
>>>
>>>
> ------------------------------------------------------------------------
>>> _______________________________________________
>>> Openupload-devel mailing list
>>> Ope...@li...
>>> https://lists.sourceforge.net/lists/listinfo/openupload-devel
>>
>
>
|