Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Find unzipped file size of zip file

Guest
Jan 10, 2012 Jan 10, 2012

Hi,

I know ColdFusion can check the size of uploaded files. I have an interesting question. How can ColdFusion check the unzipped file size of zip file?

For example, I zip a 10MB file to 8MB. How can ColdFusion return the file size 10MB, not 8MB?

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 11, 2012 Jan 11, 2012
LATEST

Do a list of the zip, then an arraySum() on the size column.  I don't think there's any etter way of doing it than that; the zip format doesn't seem to store that information as a single number:

http://en.wikipedia.org/wiki/Zip_%28file_format%29#Standardization

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources