Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
e628f2e8
Commit
e628f2e8
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Tmp folders for file uploads dont use fe user id anymore as a part of the name
parent
37e8a271
No related branches found
Branches containing commit
Tags
1.6.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Controller/JoblistController.php
+3
-3
3 additions, 3 deletions
Classes/Controller/JoblistController.php
with
3 additions
and
3 deletions
Classes/Controller/JoblistController.php
+
3
−
3
View file @
e628f2e8
...
...
@@ -103,7 +103,7 @@ class JoblistController extends ActionController {
*/
public
function
applyAction
(
JobApplication
$applyData
)
{
try
{
$this
->
submitApplicationFiles
(
$GLOBALS
[
'TSFE'
]
->
fe_user
->
id
,
$applyData
);
$this
->
submitApplicationFiles
(
$applyData
);
/** @noinspection PhpMethodParametersCountMismatchInspection */
$mailService
=
$this
->
objectManager
->
get
(
...
...
@@ -253,13 +253,13 @@ class JoblistController extends ActionController {
* @throws \Exception
* @throws \InvalidArgumentException
*/
private
function
submitApplicationFiles
(
$folder
,
JobApplication
$applicationData
)
{
private
function
submitApplicationFiles
(
JobApplication
$applicationData
)
{
$objectManager
=
GeneralUtility
::
makeInstance
(
ObjectManager
::
class
);
$resourceFactory
=
$objectManager
->
get
(
ResourceFactory
::
class
);
$storage
=
$resourceFactory
->
getStorageObject
(
1
);
$newName
=
date
(
'Ymd-His'
)
.
'_'
.
$applicationData
->
getFirstName
();
$sourceFolder
=
$storage
->
getFolder
(
'/Extension/temp/'
.
$folder
);
$sourceFolder
=
$storage
->
getFolder
(
'/Extension/temp/'
.
uniqid
(
'sgjobs-'
,
TRUE
)
);
$subFolders
=
$storage
->
getFoldersInFolder
(
$sourceFolder
);
$fileNames
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment