PDA

View Full Version : Attachments Issue


ramesh_umk3
11-21-2014, 02:55 PM
Really strange problem. Yesterday i deleted all the attachments from my attachments folder and i even cleared my attachment tables from SQL

After all that process i have attached a new file in forum data.rar but when i try to download i get blank page

when i try to see what error was i getting of php i see that error is "Invalid File (attachments.../1/1/2/6/7/8/75847.attach) no file found"

That is really strange but there are no files in attachments folder neither files are getting uploaded when i attach in my forum

but i can download files when i move attachments to database rather than filesystem

need a help in this unknown problem

kh99
11-21-2014, 03:40 PM
In the admincp, go to Maintenance > Diagnostics and try to upload a file.

Edit: oh, actually that probably won't tell you anything since it doesn't try to save the file. If you upload a file to the database then "Move Items from Database into File System", does that work without an error?

Lynne
11-21-2014, 08:20 PM
So you deleted all the files from the /attachments directory and then cleared the attachment table... did you also clear your filedata table since that is where the attachment data is actually stored?

(And I hope you made a directory and database backup before you did this.)

ramesh_umk3
11-22-2014, 07:44 AM
Awesome Lynne!!!!

1) I empty FileData Table
2) Changed Database to FileSystem Storage in AdminCP

Uploaded one file in forum and tried to download it Bingo its working again :D

Thank you Lynne and kh99