Use the remote address method in HttpRequest.
This commit is contained in:
parent
7255fea861
commit
c42e78fced
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class UploadsRoutes implements RouteHandler {
|
|||
$uploadInfo = $uploadsData->getUpload(appInfo: $appInfo, userInfo: $userInfo, hashString: $hash);
|
||||
if($uploadInfo === null) {
|
||||
$uploadInfo = $uploadsData->createUpload(
|
||||
$appInfo, $userInfo, $_SERVER['REMOTE_ADDR'],
|
||||
$appInfo, $userInfo, $request->getRemoteAddress(),
|
||||
$fileName, mime_content_type($localFile),
|
||||
$fileSize, $hash, $appInfo->bumpAmount, true
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue