define directory outside the script
(7 posts) (4 voices)-
Hi is there any way i can define a directory outside the script ?
default the script points to /web/images/
but i want to point the script "manually" with get request to /web/images/project/000000/Posted 1 year ago # -
Try: ?startup_folder=project%2F000000Posted 1 year ago #
-
FOR systems use mysql in CI (casse insensible)
search "File" return ("File" and "file")
change in line 202 of kfmDirectory
$res=db_fetch_row('select id from '.KFM_DB_PREFIX.'directories where name="'.$dirname.'" and parent='.$this->id);
to
$res=db_fetch_row('select id from '.KFM_DB_PREFIX.'directories where name=BINARY("'.$dirname.'") and parent='.$this->id);
----- edit -----
attention!
you specify %2F as separator, this is urlencode("/"), but you don't implement urldecode in function in index.php...Posted 1 year ago # -
Good point,
try ?startup_folder=project/000000 first.
About the BINARY thing, it looks like it is db specific, which might result in an error when switching to sqlite or other database types.
I don't know a good solution for this one, except maybe to not use a case insensitive database on a case sensitive OSPosted 1 year ago # -
I hate to bring up an old post but here is a relevant question:
The startup_folder querystring works correctly, but is there an easy way to auto-create the folder if it doesn't exist?
Thanks for this great software
Posted 6 months ago # -
Since you're not the first one to ask I added a setting called force_startup_folder to the newest SVN revision (1013). This does what you want.
Posted 6 months ago # -
Thanks for the quick response, looks good.
Posted 6 months ago #
Reply
You must log in to post.