Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
upload-apk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
upload-apk
Commits
5da179f9
Commit
5da179f9
authored
Mar 15, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
4e73478d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
vendor/peinhu/aetherupload-laravel/src/Receiver.php
vendor/peinhu/aetherupload-laravel/src/Receiver.php
+2
-1
vendor2.zip
vendor2.zip
+0
-0
No files found.
vendor/peinhu/aetherupload-laravel/src/Receiver.php
View file @
5da179f9
...
...
@@ -52,7 +52,8 @@ class Receiver
if
(
RedisHandler
::
hashExists
(
$savedFileHash
)
)
{
$this
->
savedPath
=
RedisHandler
::
getFilePathByHash
(
$savedFileHash
);
}
else
{
$this
->
savedPath
=
ConfigMapper
::
get
(
'FILE_DIR'
)
.
DIRECTORY_SEPARATOR
.
ConfigMapper
::
get
(
'FILE_SUB_DIR'
)
.
DIRECTORY_SEPARATOR
.
$savedFileHash
.
'.'
.
$this
->
uploadExt
;
//$this->savedPath = ConfigMapper::get('FILE_DIR') . DIRECTORY_SEPARATOR . ConfigMapper::get('FILE_SUB_DIR') . DIRECTORY_SEPARATOR . $savedFileHash . '.' . $this->uploadExt;
$this
->
savedPath
=
ConfigMapper
::
get
(
'FILE_DIR'
)
.
DIRECTORY_SEPARATOR
.
ConfigMapper
::
get
(
'FILE_SUB_DIR'
)
.
DIRECTORY_SEPARATOR
.
$savedFileHash
;
if
(
!
@
rename
(
$this
->
uploadPartialFile
,
ConfigMapper
::
get
(
'UPLOAD_PATH'
)
.
DIRECTORY_SEPARATOR
.
$this
->
savedPath
)
)
{
return
false
;
...
...
vendor2.zip
0 → 100644
View file @
5da179f9
File added
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