I used Asset Import to create a bunch of assets, so I don't know if this also applies to Asset generally.

Ran Audit Files and it said all the file's I'd just uploaded were not present in the files table. Checking the files table directly showed that all the rows (related to nid=0) had the path 'files//filename'

Just manually deleted all the Assets from within the wizard (painful process - note to self: use a smaller test set next time!) and diffed the files table and lo and behold all the rows are still there!

At this point going to delete them directly from the table (and from file_revisions as well), but of course that makes one a bit nervous.

Next will test using the one-at-a-time upload process, at least that lets me spec the destination in tree under files rather than just dumping them all in the root. (Different issue)

Comments

HansBKK’s picture

The one-at-a-time upload works much better

1 slash after files aren't doubled - so this bug report does apply to Asset Import only

2 lets me select/create the destination folder

However I just noticed that the entries for new folders are in there with double slashes.

Should folders even be listed in the files table?

I guess I'll just leave these entries alone

HansBKK’s picture

Sorry to keep nit-picking like this, but when I went to disable Asset Import, I noticed that the description there also specifically references images.

It seems to me it should just talk about files in general.

ref: http://drupal.org/node/316974

wmostrey’s picture

Status: Active » Closed (duplicate)

This is a duplicate of http://drupal.org/node/239942#comment-1029560. Please try to check for existing issues, especially if you're creating a bunch of these issues at once. There's also no need to reference other of your own tickets through the issue queue, that only adds confusion.

Do note that I really appreciate you trying out the module, your input on the asset input module for instance was very helpful. But try to watch out not to create too much noise on the issue queue.

HansBKK’s picture

Thanks for the feedback Wim. I realized I was being overly active, but did try to search to avoid double posting, even scanned all the titles but didn't find the other reference to double slashes.

Sorry I'll try searching more thoroughly next time, and generally try to keep the signal ratio high, if not noise low :)

Regarding your "Fix double slashes for files in root dir" code

Q1 Will that make it into shipping 5.x-1.x? I don't know anything about patching.
Q2 So that wasn't a problem with Asset Import specifically?
Q3 In the meantime will I avoid the problem by spec'ing a target directory other than the root?
and finally
Q4 What about the files entries being left in the table after the Assets are deleted, is that an artifact of the double-slash issue?

TIA