IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > Linux for Power Architecture > ... > Contact Core Team > Hints & Tips for posting content
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
Hints & Tips for posting content
Added by Nicolette, last edited by wburos on Sep 03, 2008
Labels: 
(None)

Upload tar files

1. If I upload a compressed file named test.tar.Z, the file gets compressed a second time and attached with mimetype application/x-compress. To extract information from the tarball after downloading it, an AIX user must employ the commands '/opt/freeware/bin/zcat test.tar.Z | zcat | tar tvf'. Uncompressing twice is counter-intuitive, so this is not a reasonable way to upload the file.

2. If I upload a compressed file named test.tar.gz, the file gets compressed a second time and attached with mimetype application/x-gzip. To extract information from the tarball after downloading it, an AIX user must employ the commands '/opt/freeware/bin/zcat test.tar.Z | /opt/freeware/bin/zcat | tar tvf'. Uncompressing twice is counter-intuitive, so this is not a reasonable way to upload the file.

3. If I upload a uncompressed file named test.tar, the file gets compressed and attached with mimetype application/x-tar. To extract information from the tarball after downloading it, an AIX user must employ the commands '/opt/freeware/bin/zcat test.tar | tar tvf'. In this case, it makes more sense for the file to be named test.tar.gz.

4. If I use the Edit link on the Wiki Attachments tab to rename the file to test.tar.gz and leave the mimetype as application/x-tar, then Microsoft Internet Explorer insists on renaming the file to something like test[1].tar.gz when it is downloaded. That automatically generated name is pretty ugly, so it makes sense to change the mimetype.

5. If I use the Edit link on the Wiki Attachments tab to rename the test.tar file to test.tar.gz and change the mimetype as application/x-gzip, then Microsoft Internet Explorer still insists on renaming the file to something like test[1].tar.gz when it is downloaded. That automatically generated name is pretty ugly, so it makes sense to choose a different mimetype.

6. If I use the Edit link on the Wiki Attachments tab to rename the test.tar file to test.tar.gz and change the mimetype as application/octet-stream, then Microsoft Internet Explorer downloads the file as test.tar.gz (does not suggest a name change when downloading). Ahhhh! (Sigh of relief.)


 
    About IBM Privacy Contact