Hi,

I upload a file via WebDAV like so

curl -u $CREDENTIALS -T "file.txt" http://server.com/DAV/home/dav/folder/

where /folder/ has readable by anyone.

However, the uploaded file does not inherit permissions ( unless I am
missing something ).
Anwyay, as things stand today I need to change its permissions right
after uploading, but the WebDAV protocol does not provide this per se.

Some solutions:
* Use Briefcase API via REST or SQL

briefcase.copy (
    from_path varchar,
    to_path varchar,
    overwrite int := 0,
    permissions varchar := '110100000RR'
    )


* Use DAV procedures
integer DAV_COPY( in path varchar , in destination varchar , in
overwrite integer , in permissions varchar , in uname varchar , in
gname varchar , in auth_uname varchar , in auth_pwd varchar );


Or, just definitely upload using briefcase API.
briefcase.resource.store (
    path varchar,
    content varchar,
    type varchar default null,
    permissions varchar default '110100100RM'
    )

Now, if I still want to stick to WebDAV upload, what would be the way to go?
In what table can I modify the flag?

Regards,
A

-- 
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.

Reply via email to