[Mapbender-users] Upload files - which formats are allowed ?
What to do in PostGIS for this ?
Verena Diewald
verena.diewald at wheregroup.com
Wed May 18 02:54:50 EDT 2011
Hi Thijs,
you can configure the file types you want to allow for upload in the
mapbender configuration file mapbender.conf in the conf directory. There
is a section for upload where you can define the following values:
define("UPLOAD_DIR", "../tmp");
define("UPLOAD_WHITELIST_FILE_TYPES", "jpg,png");
define("UPLOAD_BLACKLIST_FILE_TYPES", "");
define("UPLOAD_MAX_SIZE_KB", 2048);
As you can see you can define the formats you want to allow for upload
in UPLOAD_WHITELIST_FILE_TYPES.
The uploaded files are stored in the directory given as UPLOAD_DIR, so
there's nothing to configure in the database itself.
Best regards,
Verena
Am 17.05.2011 16:02, schrieb Boer, dr. W.M. de (Thijs):
> Hello list members,
>
> In the digitize (via WFS-T from Geoserver) part of mapbender 2.7 it is possible to give the users the possibility to upload files.
> For that, a HTML-template in the configuring WFS part of the admin gui of MB exists.
>
> A few questions:
> - if I want to enable the users to upload photo's, say in .jpg format is this possible ? And other formats too?
> - what do I have to do in PostGIS (version 1.5) to enable Mapbender to store those photo's ?
>
> Thanks in advance,
> Thijs de Boer
>
> ........................................................................
> GIS Competence Center
> Dienst Landelijk Gebied
> Ministerie van Economische Zaken, Landbouw& Innovatie
> ........................................................................
> F 030 275 69 99
> w.m.dboer at minlnv.nl
>
> Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u
> niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden,
> wordt u verzocht dat aan de afzender te melden en het bericht te
> verwijderen.
> De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard
> ook, die verband houdt met risico's verbonden aan het elektronisch
> verzenden van berichten.
>
> This message may contain information that is not intended for you. If you
> are not the addressee or if this message was sent to you by mistake, you
> are requested to inform the sender and delete the message.
> The State accepts no liability for damage of any kind resulting from the
> risks inherent in the electronic transmission of messages.
>
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
--
More information about the Mapbender_users
mailing list