av8or1
05-28-2011, 10:51 PM
Hi-
I am running vB 4.1.3 and am using my test forum. Recently I tried moving the attachments from the DB to the filesystem. This went ok insofar as I could tell, but when the posts that had attachments were viewed, I could not load the full images. The thumbnails appeared and were correct, but the anchors that lead to the files were not correct. Specifically, I noted the following:
1) When viewing the source for the webpage, I noticed that the anchor (<a href=blahblahblah) and the img (img src=blahblahblah) tags did not contain the full URL to include the domain name, but rather just began with "attachment.php?blahblahblah". Conversely when I looked at attachments on my non-test forum the anchor and img tags contained the full URL to include the domain name.
2) When viewing the properties for each thumbnail, the attachment data at the end was missing. That is, instead of seeing blahblahblahattachment.php?attachmentid=12blahblah blah, I saw only attachment.php? - and then nothing after that.
3) The thumbs and files are being created correctly with the new expanded path system. Ergo, for userid=3018 and attachmentid=8344 I see ~3/0/1/8/8344.attach and ~3/0/1/8/8344.thumb - AND these files are correctly stored. That is, if I was to enter the path directly to them in my browser (http://domain.com/testvb/forum_attachments/3/0/1/8/8344.attach) and press enter, the image renders correctly.
4) The data in the attachment, attachmentcategoryuser and filedata tables is correct.
So it's not a storage issue, the files are correctly represented on disk. Somehow or another vB is becoming discombobulated with the references to them. I've played around with it for a couple of hours now and not making a lot of progress. So I thought I would ask: has anyone else encountered this?
Thanks!
Jerry
I am running vB 4.1.3 and am using my test forum. Recently I tried moving the attachments from the DB to the filesystem. This went ok insofar as I could tell, but when the posts that had attachments were viewed, I could not load the full images. The thumbnails appeared and were correct, but the anchors that lead to the files were not correct. Specifically, I noted the following:
1) When viewing the source for the webpage, I noticed that the anchor (<a href=blahblahblah) and the img (img src=blahblahblah) tags did not contain the full URL to include the domain name, but rather just began with "attachment.php?blahblahblah". Conversely when I looked at attachments on my non-test forum the anchor and img tags contained the full URL to include the domain name.
2) When viewing the properties for each thumbnail, the attachment data at the end was missing. That is, instead of seeing blahblahblahattachment.php?attachmentid=12blahblah blah, I saw only attachment.php? - and then nothing after that.
3) The thumbs and files are being created correctly with the new expanded path system. Ergo, for userid=3018 and attachmentid=8344 I see ~3/0/1/8/8344.attach and ~3/0/1/8/8344.thumb - AND these files are correctly stored. That is, if I was to enter the path directly to them in my browser (http://domain.com/testvb/forum_attachments/3/0/1/8/8344.attach) and press enter, the image renders correctly.
4) The data in the attachment, attachmentcategoryuser and filedata tables is correct.
So it's not a storage issue, the files are correctly represented on disk. Somehow or another vB is becoming discombobulated with the references to them. I've played around with it for a couple of hours now and not making a lot of progress. So I thought I would ask: has anyone else encountered this?
Thanks!
Jerry