[ic] value_extended patch for upload permissions

Ed LaFrance interchange-users@interchange.redhat.com
Thu Aug 9 12:23:00 2001


At 07:54 PM 08/08/2001 -0700, you wrote:
>Hi all,
>
>A while back there were a couple of postings to the mail list regarding
>uploading of images, and their resulting permissions.
>http://developer2.akopia.com/archive/interchange-users/2000/msg03435.html
>
>The problem he was (and I am) having is images uploaded to the server ended
>up with a permission code of rw-rw--- ,forcing you to change permissions
>after uploading to rw-rw-r-- in order to view the images.
>
>Then Stefan Hornburg posted a patch for that problem just a few weeks(days?)
>later....
>
>http://developer2.akopia.com/archive/interchange-users/2000/msg03708.html
>
>Description: This patch allows you to temporarily changing
> >              the umask for uploaded files.
> > Motivation:  My catalog directory usually contains a subdirectory
> >              images, where images for the Webserver are stored.
> >              With this patch, files can be uploaded with read
> >              permission for anyone.
> > Future:      If Mike likes it, this can be added to MiniVend
> >              with appropriate documentation supplied by
> >              me.
>
>I looked under documentation for tag value-extended and see nothing relating
>to this patch, and also could find nothing further on the mail list. My
>umask knowledge is limited so I am unsure as to how to apply this...?  I
>have added the patch code to Interpolate.pm and Util.pm , (This store is
>Using MV 4.04 and Minimate).  Can someone direct me on how to do this
>correctly?
>
>THanks,
>
>Greg

If you applied the patch correctly you should be able to do:

[value-extended
         umask="nnn"
         ...
]

...where 'nnn' would be the umask for the permissions settings on the file; 
'022' should work for you.

- Ed L.



===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================