Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
file-storage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
file-storage
Commits
f9c5d22b
Commit
f9c5d22b
authored
Jun 21, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed a number of exec calls to im_exec
parent
415a3143
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
file-add.tcl
www/file-add.tcl
+2
-2
folder-zip-add.tcl
www/folder-zip-add.tcl
+1
-1
No files found.
www/file-add.tcl
View file @
f9c5d22b
...
...
@@ -119,7 +119,7 @@ ad_form -extend -form {
{
description:text
(
textarea
)
,optional
{
label
\#
file-storage.Description
\#
}
{
html
"rows 5 cols 35"
}}
}
if
[
catch
{
set
binary
[
exec
$unpack
_binary
]}
errormsg
]
{
if
[
catch
{
set
binary
[
im_
exec
$unpack
_binary
]}
errormsg
]
{
set unpack_bin_installed 0
}
else
{
set unpack_bin_installed 1
...
...
@@ -155,7 +155,7 @@ ad_form -extend -form {} -select_query_name {get_file} -new_data {
file mkdir
$path
catch
{
exec
$unpack
_binary -jd
$path
${upload_file.tmpfile}
}
errmsg
catch
{
im_
exec
$unpack
_binary -jd
$path
${upload_file.tmpfile}
}
errmsg
# More flexible parameter design could be:
# zip
{
unzip -jd
{
out_path
}
{
in_file
}}
tar
{
tar xf
{
in_file
}
{
out_path
}}
tgz
{
tar xzf
{
in_file
}
{
out_path
}}
...
...
www/folder-zip-add.tcl
View file @
f9c5d22b
...
...
@@ -100,7 +100,7 @@ ad_form -extend -name file_add -form {} -new_data {
set unzip_path
[
ad_tmpnam
]
file mkdir
$unzip
_path
# save paths! get rid of -j switch --DAVEB 20050628
catch
{
exec
$unzip
_binary -d
$unzip
_path
${upload_file.tmpfile}
}
errmsg
catch
{
im_
exec
$unzip
_binary -d
$unzip
_path
${upload_file.tmpfile}
}
errmsg
# More flexible parameter design could be:
# zip
{
unzip -jd
{
out_path
}
{
in_file
}}
tar
{
tar xf
{
in_file
}
{
out_path
}}
tgz
{
tar xzf
{
in_file
}
{
out_path
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment