Closed Thread Icon

Topic awaiting preservation: Delete file from .zip upon upload? Possible? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12887" title="Pages that link to Topic awaiting preservation: Delete file from .zip upon upload? Possible? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Delete file from .zip upon upload? Possible? <span class="small">(Page 1 of 1)</span>\

 
Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 09-09-2003 20:57

I'm helping revamp a forum button set site. Anyway they allow user submissions of the buttons but only in a .zip file. Now the problem is many people are not removing the "Thumbs.db" file from the .zip which if you have ever checked, they can be rather large.

That is wasting a lot of bandwidth because the files are bigger than neccessary. They have told the users to make sure the file is not in the .zip as they upload it, but if there is one certainty in life, it's that people never listen.

So i'm woundering, is it possible to check the .zip for the "Thumbs.db" file as it's uploaded, and delete the file if it's there? Or is that still a little too Star Trek?

I had not ever heard of it being done, but hey there are still many php functions I've yet to explore so thought it was worth a shot

Synthetic's Chess Player Page

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-09-2003 21:48

You need PclZip: http://www.phpconcept.net/pclzip/index.en.php

BTW PHP also comes with functions that support only *reading* zip files...


butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 09-11-2003 01:58

*slaps forehead*

I wondered where those thumbs.db files were coming from.

Duh on me!! =D

-Butcher-

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 09-11-2003 11:17

no matter, you still won't be able to handle the zip files before they land on your server... so no bandwith savings there.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 09-11-2003 14:05

But there will be savings when others download the files afterwards.

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 09-12-2003 02:24

Yeah that is the angle I was after, no real way to keep them from uploading the file in the .zip but if it could be removed before others download it, then it's that much more i save

@mr.maX, thanks i'll go check out that script and see what it's about

Synthetic's Chess Player Page

« BackwardsOnwards »

Show Forum Drop Down Menu