Issue with Automatic File Upload Not Working Properly

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
wafyfawaz
Posts: 4
Joined: 2024-08-15 21:15

Issue with Automatic File Upload Not Working Properly

Post by wafyfawaz » 2024-08-23 19:56

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.
file32465421.JPG
this is problem
file32465421.JPG (105.17 KiB) Viewed 814 times

It only activates maintenance mode and then deactivates it without uploading the files
8-) WafyFawaz From KSA

wafyfawaz
Posts: 4
Joined: 2024-08-15 21:15

Re: Issue with Automatic File Upload Not Working Properly

Post by wafyfawaz » 2024-08-25 18:17

No answer !
8-) WafyFawaz From KSA

User avatar
a.gneady
Site Admin
Posts: 1319
Joined: 2012-09-27 14:46
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by a.gneady » 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.
:idea: AppGini plugins to add more power to your apps:

soewandi
Veteran Member
Posts: 34
Joined: 2019-11-20 14:00

Re: Issue with Automatic File Upload Not Working Properly

Post by soewandi » 2024-08-28 12:55

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?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1888
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by jsetzer » 2024-08-28 13:46

Is it https?
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

soewandi
Veteran Member
Posts: 34
Joined: 2019-11-20 14:00

Re: Issue with Automatic File Upload Not Working Properly

Post by soewandi » 2024-08-29 04:38

Yes, Application URL https://g_______.online/app
Even after manually upload file-uploader.php to remote server, the error message exists.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1888
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by jsetzer » 2024-08-29 05:17

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.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

soewandi
Veteran Member
Posts: 34
Joined: 2019-11-20 14:00

Re: Issue with Automatic File Upload Not Working Properly

Post by soewandi » 2024-08-30 06:46

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

wafyfawaz
Posts: 4
Joined: 2024-08-15 21:15

Re: Issue with Automatic File Upload Not Working Properly

Post by wafyfawaz » 2024-08-31 13:34

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
8-) WafyFawaz From KSA

wafyfawaz
Posts: 4
Joined: 2024-08-15 21:15

Re: Issue with Automatic File Upload Not Working Properly

Post by wafyfawaz » 2024-08-31 13:36

jsetzer wrote:
2024-08-28 13:46
Is it https?
yes
8-) WafyFawaz From KSA

User avatar
a.gneady
Site Admin
Posts: 1319
Joined: 2012-09-27 14:46
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by a.gneady » 2024-09-05 08:42

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):

Code: Select all

sudo chown -R www-data:www-data .
Change www-data to the username running apache process.
:idea: AppGini plugins to add more power to your apps:

soewandi
Veteran Member
Posts: 34
Joined: 2019-11-20 14:00

Re: Issue with Automatic File Upload Not Working Properly

Post by soewandi » 2024-11-27 04:14

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

jfischer
Posts: 29
Joined: 2022-11-19 16:07
Location: Austria
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by jfischer » 2024-11-28 15:16

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
Upload1.jpg (116.19 KiB) Viewed 156 times

The upload log says this.

Upload2.jpg
Upload2.jpg (172.4 KiB) Viewed 156 times

Is there a solution? Kind regards Josef F.

jfischer
Posts: 29
Joined: 2022-11-19 16:07
Location: Austria
Contact:

Re: Issue with Automatic File Upload Not Working Properly

Post by jfischer » 2024-11-29 07:12

Hello everyone

Found an error! The antivirus program prevented the upload. If you stop the protection, the upload works perfectly!

Best wishes

soewandi
Veteran Member
Posts: 34
Joined: 2019-11-20 14:00

Re: Issue with Automatic File Upload Not Working Properly

Post by soewandi » 2024-11-29 11:45

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

Post Reply