Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
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
yaru
fgqyxxlr
Commits
2b20edef
Commit
2b20edef
authored
Jul 11, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传文件windows去除盘符
parent
304da21e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ruoyi-admin/src/main/resources/templates/system/user/add.html
+1
-1
ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java
+6
-1
No files found.
ruoyi-admin/src/main/resources/templates/system/user/add.html
View file @
2b20edef
...
...
@@ -53,7 +53,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
><span
style=
"color: red; "
>
*
</span>
登录账号:
</label>
<div
class=
"col-sm-8"
>
<input
name=
"loginName"
placeholder=
"请输入登录账号"
class=
"form-control
required
"
type=
"text"
maxlength=
"30"
required
>
<input
name=
"loginName"
placeholder=
"请输入登录账号"
class=
"form-control"
type=
"text"
maxlength=
"30"
required
>
</div>
</div>
</div>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java
View file @
2b20edef
...
...
@@ -113,7 +113,12 @@ public class FileUploadUtils
File
desc
=
getAbsoluteFile
(
baseDir
,
fileName
);
file
.
transferTo
(
desc
);
String
pathFileName
=
StringUtils
.
substringAfterLast
(
baseDir
,
":"
)
+
fileName
;
String
pathFileName
=
baseDir
+
fileName
;
if
(
StringUtils
.
contains
(
baseDir
,
":"
))
{
// windows 去除盘符
pathFileName
=
StringUtils
.
substringAfterLast
(
baseDir
,
":"
)
+
fileName
;
}
return
pathFileName
;
}
...
...
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