Uploads not working (again)?

Status
Not open for further replies.

alec_t

Well-Known Member
Most Helpful Member
The uploading of attachments seems flakey again. It was working fine a day or two ago, but now I'm again unable to post an attachment to the 'Help with water pump' thread.
 
I found that if images are under 40k they upload... anything more and they don't...
 
I managed to upload JPG's only... I think PD's are working as well.
 
Hi Guys,

I'm somewhat struggling this this error. There are no logs and nothing being reported as problems.

I'll do some more testing and report back.

Thanks for letting me know.

Regards,
EM
 
The re-occurrence of the problem seemed to coincide with either (a) your removal of the Christmas decorations or (b) Firefox update, if that's any clue.
 
It's definitely not (a) and I doubt it is (b).

The way uploads work is that they are stored in a directory unique to the user uploading them. I.E. /files/X/X/X/X/X/ZZZ.attach where the X's represent the user id and the Z's are the file's id. The initial problem was the permissions on the directories and now this is a new error which I haven't pin pointed.
 
Last edited:
Thanks for your patience guys. This was one of the hardest things to debug. Problem resolved though.

For you techies out there, the issue was that when a file is uploaded the contents are hashed (md5), then looked up in the database. If there is a matching hash, instead of processing a new image it just uses the contents of the original. This was why some images worked and some didn't. So basically if the file didn't exist after the hard drive crash but the hash was in the database it would show a missing image.

Regards,
EM
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…