[GRASS-user] Storing scripts directly on the WIKI add-ons site

Hi,

Is it possible to upload and store scripts as tar.bz2 files to the WIKI add-ons? I can't find the procedure to do this. Pretty much all contributors to the add-ons have their own dedicated http site to host their scripts, but I seem to remember once that you could store add-ons directly on the WIKI site somehow.

I see that there is an 'Upload file' link under the toolbox on the left-hand side of the screen, but it only allows image uploads.

Thanks,

~ Eric.

Patton, Eric wrote:

Hi,

Is it possible to upload and store scripts as tar.bz2 files to the
WIKI add-ons? I can't find the procedure to do this. Pretty much all
contributors to the add-ons have their own dedicated http site to host
their scripts, but I seem to remember once that you could store
add-ons directly on the WIKI site somehow.

I see that there is an 'Upload file' link under the toolbox on the
left-hand side of the screen, but it only allows image uploads.

it is a serious problem, as often people's personal www space goes away
after a few years and the script is lost.

we should really keep a backup..

re storing files in the wiki:
http://grass.gdf-hannover.de/wiki/GRASS_Education_(Free_GIS_education)#Current_Restrictions

hopefully we can set up an upload area at
http://wald.intevation.org/projects/grass/
?
(this would require an admin to ok the upload before making it public,
but I think we can handle that)

Hamish

Patton, Eric wrote on 11/16/2006 03:37 PM:

Hi,

Is it possible to upload and store scripts as tar.bz2 files to the WIKI add-ons? I can't find the procedure to do this. Pretty much all contributors to the add-ons have their own dedicated http site to host their scripts, but I seem to remember once that you could store add-ons directly on the WIKI site somehow.

I see that there is an 'Upload file' link under the toolbox on the left-hand side of the screen, but it only allows image uploads.
  

Eric,
(cc Stephan Holl)

unfortunately I recently became also de-facto admin of the GRASS Wiki. I
think that
script upload was disabled on purpose (security) but maybe Stephan has
more insights.
If not, I would like to know how to enable it.

Markus

Markus Neteler wrote:

Eric wrote:
> Is it possible to upload and store scripts as tar.bz2 files to the
> WIKI add-ons? I can't find the procedure to do this. Pretty much all
> contributors to the add-ons have their own dedicated http site to
> host their scripts, but I seem to remember once that you could store
> add-ons directly on the WIKI site somehow.
>
> I see that there is an 'Upload file' link under the toolbox on the
> left-hand side of the screen, but it only allows image uploads.

Markus:
..

I think that script upload was disabled on purpose (security) but
maybe Stephan has more insights.
If not, I would like to know how to enable it.

can it be limited to files < 100kb, and non-binary files unless .gz or
.zip extension containing source code? what we don't want is free
webspace for video game crackers and someone posting a sounds-useful
trojan horse.

keeping these in a tracker on the gforge site will be easier to
administer.

Hamish

Hello Markus,

On Fri, 17 Nov 2006 16:58:29 +0100 Markus Neteler <neteler@itc.it>
wrote:

Patton, Eric wrote on 11/16/2006 03:37 PM:
> Hi,
>
> Is it possible to upload and store scripts as tar.bz2 files to the
> WIKI add-ons? I can't find the procedure to do this. Pretty much
> all contributors to the add-ons have their own dedicated http site
> to host their scripts, but I seem to remember once that you could
> store add-ons directly on the WIKI site somehow.
>
> I see that there is an 'Upload file' link under the toolbox on the
> left-hand side of the screen, but it only allows image uploads.
Eric,
(cc Stephan Holl)

unfortunately I recently became also de-facto admin of the GRASS
Wiki. I think that
script upload was disabled on purpose (security) but maybe Stephan has
more insights.

Yes, it was disabled due to security reasons. By default it is only
possible to add pictures through the upload-interface of media-wiki.

If not, I would like to know how to enable it.

There is a config-option somewhere in the basic config-script (which is
very well documented). After enabling the upload you need to add
suffixes to an array which are allowed to be uploaded.

Best
  Stephan

--
Stephan Holl : www.intevation.de/~stephan | GISpatcher:
www.gispatcher.de Intevation GmbH: www.intevation.de | GAV
e.V.: www.grass-verein.de Georgstr.4 : 49074 Osnabrück |

Markus:

> I think that script upload was disabled on purpose (security) but
> maybe Stephan has more insights.

Stephan:

Yes, it was disabled due to security reasons. By default it is only
possible to add pictures through the upload-interface of media-wiki.

> If not, I would like to know how to enable it.

There is a config-option somewhere in the basic config-script (which
is very well documented). After enabling the upload you need to add
suffixes to an array which are allowed to be uploaded.

is it possible to limit by file size as well as extension?

requiring all grass scripts to have a ".sh" extension (or whatever)
would be a pain.. (for source code .zip, .gz, .?)

Hamish