pixeline / bugs

Simple Issue Tracking for Teams. Built in Laravel 3 (php/mysql)
pixeline.github.io/bugs/
MIT License
88 stars 24 forks source link

Problems uploading photos #789

Closed samoy2002 closed 2 years ago

samoy2002 commented 2 years ago

As of today, for some reason i can no longer upload photos into issues.

When I try to upload a photo, it gives me an onscreen error of:

Unable to manage with this :****

Looking at the log files, nothing is being inserted to explain why this error might be happening. No updates were done, and I used the system a week ago without any problems at all. I went back to that project to try and upload a photo into it, and it is also giving me the problem. I also tried uploading from a different directory, tried adjusting the size of the image to be under 2.5 MB and still continue to get that error.

Any Ideas what might be happening?

Mark

Patriboom commented 2 years ago

Hello Mark,

this tools has some limits:

According to what i read you've tried, I guess on the rights to access / write into the destination directory.

How did you try to upload the file ...

I'll try to repeat the situation and find an answer meanwhile you'll answer my questions. Also, I'll change the upload script to have more informations in the log file next time.

samoy2002 commented 2 years ago

I was trying to upload the photo using the attach file button. The same way I have done it for hundreds of other photos. The photos are .jpg, and limited in size. I have gone into the uploads directory and looked. There was a directory created for the file, which is set up as 755, which should be good enough to allow the software to save the file?

Mark

From: Patriboom @.> Sent: Thursday, April 7, 2022 10:13 AM To: pixeline/bugs @.> Cc: samoy2002 @.>; Author @.> Subject: Re: [pixeline/bugs] Problems uploading photos (Issue #789)

Hello Mark,

this tools has some limits:

According to what i read you've tried, I guess on the rights to access / write into the destination directory.

How did you try to upload the file ...

I'll try to repeat the situation and find an answer meanwhile you'll answer my questions. Also, I'll change the upload script to have more informations in the log file next time.

- Reply to this email directly, view it on GitHub https://github.com/pixeline/bugs/issues/789#issuecomment-1091862882 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATER5RM7WT7ZMM77BXK5S33VD 33OXANCNFSM5SZS24SQ . You are receiving this because you authored the thread.Message ID: @.***>

Patriboom commented 2 years ago

Hello Mark,

I had a quick look on that this morning. Could not find the problem yet. But, I've prepared some better logging I'll may have time to investigate deeper during weekend.

There was a directory created for the file, which is set up as 755, which should
be good enough to allow the software to save the file?

Yes, that sounds pretty good. I'll have to find out why the file hasn't been moved into this directory. My tests - with the same code as yours - doesn't behave like you describe, but works good.

The strangest part is: it was working good until it stopped to do so for no reason (no update, no change in your directories or rights, proper file size, proper directory's rights).. ..... surprising.

Coming soon: better logs.

samoy2002 commented 2 years ago

The problem has been resolved. For some reason, settings on the server changed, and the PHP limit was set lower than it should have been. There must have been an update that changed that value without my knowledge. It has now been set to 1 GB, and I am uploading perfectly again.

Mark Thiessen

From: Patriboom @.> Sent: Friday, April 8, 2022 8:06 AM To: pixeline/bugs @.> Cc: samoy2002 @.>; Author @.> Subject: Re: [pixeline/bugs] Problems uploading photos (Issue #789)

Hello Mark,

I had a quick look on that this morning. Could not find the problem yet. But, I've prepared some better logging I'll may have time to investigate deeper during weekend.

There was a directory created for the file, which is set up as 755, which should be good enough to allow the software to save the file?

Yes, that sounds pretty good. I'll have to find out why the file hasn't been moved into this directory. My tests - with the same code as yours - doesn't behave like you describe, but works good.

The strangest part is: it was working good until it stopped to do so for no reason (no update, no change in your directories or rights, proper file size, proper directory's rights).. ..... surprising.

Coming soon: better logs.

- Reply to this email directly, view it on GitHub https://github.com/pixeline/bugs/issues/789#issuecomment-1092838787 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATER5RNQF2GQS4EICTU7B2TVE AVJ5ANCNFSM5SZS24SQ . You are receiving this because you authored the thread.Message ID: @.***>

Patriboom commented 2 years ago

Nice! Thanks to let me know.

Anyway, your problem opened a new field of work: better logs. And this field is on its way. May we close the issue ?

samoy2002 commented 2 years ago

Yes, please, It is working perfectly.

Mark

From: Patriboom @.> Sent: Friday, April 8, 2022 9:08 AM To: pixeline/bugs @.> Cc: samoy2002 @.>; Author @.> Subject: Re: [pixeline/bugs] Problems uploading photos (Issue #789)

Nice! Thanks to let me know.

Anyway, your problem opened a new field of work: better logs. And this field is on its way. May we close the issue ?

- Reply to this email directly, view it on GitHub https://github.com/pixeline/bugs/issues/789#issuecomment-1092899345 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATER5RIGMQBAVTHHEMXKZOLVE A4SDANCNFSM5SZS24SQ . You are receiving this because you authored the thread.Message ID: @.***>