Page 1 of 1
Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-23 19:56
by wafyfawaz
I want to solve the problem of automatically uploading files to the website. I tried using the (Upload) button, but it puts the site in maintenance mode and then closes it without uploading the modified files as shown in the attached image. Please note that I have uploaded the (file-uploader.php) to the root directory.
- this is problem
- file32465421.JPG (105.17 KiB) Viewed 973 times
It only activates maintenance mode and then deactivates it without uploading the files
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-25 18:17
by wafyfawaz
No answer !
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-26 05:10
by a.gneady
Please check the upload.log file inside your local app folder. It should contain more details about what's going on.
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-28 12:55
by soewandi
In my upload log file says: 'file-uploader.php' is configured with the correct secret upload key: FAILED
All the other checks are OK.
What should I do?
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-28 13:46
by jsetzer
Is it https?
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-29 04:38
by soewandi
Yes, Application URL https://g_______.online/app
Even after manually upload file-uploader.php to remote server, the error message exists.
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-29 05:17
by jsetzer
https://g_______.online/app
I don't know if this helps in your scenario:
I once had similar problems when pointing to a subdomain of a website in which the SSL-certificate was
not a wildcard-certificate. Certificate worked for
https://www.MYSITE.de/path
but
not for
https://subdomain.MYSITE.de
.
- To be precise: The browser-redirection from
subdomain.mysite.de
to app-directory www.mysite.de/mypath
worked fine in browser, but AppGini upload process failed in one of the last steps after telling me that file-uploader.php
was found.
So, if this is a subsomain
xyz.YOURDOMAIN.online
of
www.YOURSITE.online
, as I can see from your last answer, you could check with a sub-
directory under the main domain, eg
https://www.YOURSITE.online/xyz
.
Strange, and I spent a lot of time in finding that, but finally, that helped in my case.
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-30 06:46
by soewandi
At first, many thanks for Mr Jsetzer for your effort to help me. I'm confirm that the upload files going to
https://mydomain.online/app
Unfortunately, it always failed using the automatic upload feature. So I do manually upload the generated files.
My regards,
Soewandi
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-31 13:34
by wafyfawaz
a.gneady wrote: ↑2024-08-26 05:10
Please check the upload.log file inside your local app folder. It should contain more details about what's going on.
ok this file upload
31/08/24 04:29:58 م:
Started uploading files from: C:\Users\******* ohs
to: https://ohs******/ohs
Secret upload key configured in AppGini Preferences: Ok
Application URL specified in project properties > Security settings: Ok
curl is installed: Ok
Application URL is valid: Ok
'file-uploader.php' uploaded to your server: Ok
'file-uploader.php' is configured with the correct secret upload key: Ok
Retrieving md5 hashes of local files ...
31/08/24 04:30:04 م: Storing md5 hashes of local files to c:\Users\********ohs\md5s.832782.tmp
Executing cmd /c ""C:\Program Files (x86)\AppGini\md5sum.exe" -r "c:\************ ohs" > "c:\Users\******** ohs\md5s.832782.tmp.tmp" && copy "c:\Users\***** ohs\md5s.832782.tmp.tmp" "c:\Users\*******ohs\md5s.832782.tmp""
31/08/24 04:30:23 م: Finished storing hashes. File contains 454 lines.
Parsing local md5 hashes temp file: c:\Users\********** ohs\md5s.832782.tmp
Done parsing c:\Users\************ohs\md5s.832782.tmp
Checking remote file md5 hashes ...
Lines in remote response: -1
Listing local files ...
Uploading changed files ...
Maintenance mode: On
Maintenance mode: Off
Finshed processing 0 files! Uploaded: 0, Skipped: 0, Failed: 0
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-08-31 13:36
by wafyfawaz
jsetzer wrote: ↑2024-08-28 13:46
Is it https?
yes
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-09-05 08:42
by a.gneady
Lines in remote response: -1
This is the problem line (should be a postive number rather than -1) ... usually indicates incorrect folder permissions on the server .. Make sure the folder owner and the owner of
file-uploader.php
is the same as the owner of the apache server process. This is usually
www-data
but could differ depending on your server config. You can change the folder owner via FTP, or through this shell command (run from within the folder containing your AppGini app):
Change
www-data
to the username running apache process.
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-11-27 04:14
by soewandi
Hello Sir, until now I'm still can't use Automatic File Upload to remote server.
My upload file log content as:
11/27/2024 10:54:54 AM:
Started uploading files from: C:\xampp\htdocs\myaplication\app
to:
https://gkisulung.org/myaplication/app
Secret upload key configured in AppGini Preferences: Ok
Application URL specified in project properties > Security settings: Ok
curl is installed: Ok
Application URL is valid: Ok
'file-uploader.php' uploaded to your server: Ok
'file-uploader.php' is configured with the correct secret upload key: FAILED
Uploading aborted due to failed check(s)
Please help me and thank you in advanced.
My regards,
Soewandi
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-11-28 15:16
by jfischer
Hello
I updated to AppGini 24.18 today. Since then, the automatic file upload no longer works.
The security key is correct! In AppGini and in the file.
- Upload1.jpg (116.19 KiB) Viewed 315 times
The upload log says this.
- Upload2.jpg (172.4 KiB) Viewed 315 times
Is there a solution? Kind regards Josef F.
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-11-29 07:12
by jfischer
Hello everyone
Found an error! The antivirus program prevented the upload. If you stop the protection, the upload works perfectly!
Best wishes
Re: Issue with Automatic File Upload Not Working Properly
Posted: 2024-11-29 11:45
by soewandi
Hello jfischer - Yes you're right. I tried to deactivate the anti virus program (AVG) and then success to upload all files to remote server.
Many thanks for your info.
Best regards,
Soewandi