Re: Organize uploads into month- and year-based folders?
It can be done very easily. Actually the better work flow would be what I propose to implement in my upcoming classipress site. Allow image upload and edit only using edit ad. That way you already know the post id and user id. So you can easily modify my custom edit template (
http://wpclassipress.com/forum/viewtopic.php?f=4&t=947
) to upload into a directory like classipress/user/post for each post. So when a post is deleted, the entire post directory can set to be deleted to delete images for that post and when a user is deleted all images pertaining to that user can be deleted. Simple.
There is also a second advantage if your ads are paid and users upload images during the regular ad post and they dont pay then these images are going to take up space on your servers. So inactive ads of users who don't respond or have second thoughts you are losing out on space. You can save this space by having image uploads only in the edit ad. It was not earlier possible to have it this way because before last Sunday you couldn't do so using the edit post till my mod