Closed (fixed)
Project:
Asset
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 08:00 UTC
Updated:
23 Sep 2008 at 13:02 UTC
I feel like an idiot here, but I've searched my file system, and I've read the documentation, and tried Google, and for the life of me I cannot figure out where assets are being stored when they are uploaded. The reason I ask is because I want to delete a whole bunch of assets in one go -- is there another way to do that? I know I can delete a folder from the wizard, but is there a way to delete a whole bunch of assets from within a folder?
Thanks very much for bearing with me and my noobishness.
Comments
Comment #1
wmostrey commentedYour assets are stored in the default Drupal directory, and then in your username. So if you're logged in as user "admin" then the assets you upload are stored in files/admin. It is indeed possible to delete a complete directory but not multiple files at a time in a single directory. You can always file a feature request issue for that one.
Comment #2
jordanmagnuson commentedWow. I feel even dumber than I did before -- I don't know how in the world I missed that, as I thought I had searched through my whole file system twice! In any case, thanks for pointing out the obvious!
So I went ahead and deleted all the files from my assets directory, but when I went to the asset wizard, they still showed up there (though when I tried to insert them it said it couldn't find the file). Wouldn't it make sense to delete the files from the wizard if they are removed from the directory? I guess that should be a feature request though?
Comment #3
wmostrey commentedWell the normal procedure would be to delete the files using the asset wizard, not the other way around. You will have this with all file modules: from the core upload module to filefield. They store information about the file in the database so they don't have to check each time if the file is still there. The same counts for moving files: just because you move a file physically doesn't mean that Drupal knows you did so since the database didn't get update.
Just delete the files using the wizard and you'll be fine.
Comment #4
jordanmagnuson commentedThat makes sense -- the reason I was trying to delete them from the directory is that I wanted to get them out of the wizard without having to push the delete button a million times. But like you say, it doesn't make sense for the wizard to have to check if the files are still uploaded -- so I guess I'm going to post a feature request on this: ability to delete multiple files at once from the asset wizard.
Thanks for your patience!
Comment #5
wmostrey commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.