[ckan-dev] Resource view plugin for ZIP files

Ian Ward ian at excess.org
Thu Jul 9 15:58:13 UTC 2015


If the server hosting the file supports range requests this would be
quick even for large ZIP files. IIRC the index of files contained is
stored right at the end of the ZIP and that's all you need.

It might be better to have a plugin store the list of files as a
resource extra after the upload is complete to save the repeated work
for clients and allow indexing.

On Thu, Jul 9, 2015 at 5:44 AM, Matthew Fullerton <matthew at smartlane.de> wrote:
> Just to correct myself:
>
> - JavaScript ZIP viewing is possible:
> https://stuk.github.io/jszip/documentation/howto/read_zip.html
>
> - I suppose the view would be enabled manually and then probably only for
> relatively small zip files
>
>
> I would be interested in seeing this happen/helping.
>
>
> Best,
>
> Matt
>
>
> ________________________________
> Von: Matthew Fullerton
> Gesendet: Mittwoch, 8. Juli 2015 14:18
> An: CKAN Development Discussions
> Betreff: AW: [ckan-dev] Resource view plugin for ZIP files
>
>
> Hi,
> I would be even more interested in a plugin that offers to unzip zip files
> to multiple resources at upload time OR put a listing of the contents into
> the description of a single resource automatically. Or a 'preview' that just
> loads the file listing as text from an extras field, created at upload. A
> preview that actually accesses the ZIP file each time on-view is probably to
> much work for the server or too much bandwidth for the client (assuming ZIP
> file previewing with JavaScript is even possible).
>
>
> Best,
> Matt
>
>
>
> Projekt SMARTLANE
>
> matthew at smartlane.de
> T +49.89.289.28575
> F +49.89.289.22333
> www.smartlane.de
>
> EXIST-Gründungsvorhaben „Tapestry“
> c/o Lehrstuhl für Verkehrstechnik
> Technische Universität München
> Arcisstraße 21
> 80333 München
>
> Gefördert vom Bundesministerium für Wirtschaft und Technologie
> aufgrund eines Beschlusses des Deutschen Bundestages.
>
> ________________________________
> Von: ckan-dev <ckan-dev-bounces at lists.okfn.org> im Auftrag von Stefan
> Oderbolz <stefan.oderbolz at liip.ch>
> Gesendet: Montag, 29. Juni 2015 11:57
> An: CKAN Development Discussions
> Betreff: [ckan-dev] Resource view plugin for ZIP files
>
> Hi there,
>
> is anyone aware of a resource view plugin to "preview" ZIP files? I found
> already a bunch of plugins for all kinds of formats (including geo-formats,
> office-docs etc.), but so far I couldn't find one for ZIPs.
>
> If that does not exist, would others be interested in such a plugin as well?
>
> Cheers, Stefan
>
> --
> Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list