Assets NOT assigned with Folder

How can items be located if they have not been assigned a Folder?

That’s not possible, as all files have to be uploaded to a folder.

The above attachment is showing the result of a custom field search. When the image results are found, they have an empty “Located in” field.

The uploads were done using the Upload API call, with out a folder id.

I tried the API call to upload image with a ’ ’ space character for the folder id, it seems to have successfully uploaded the image, to some unknown folder.

I want to be able to find such items in a bulk way and just delete them. even better, if I can find the ones that are only uploaded by me.

If it is not possible for me to do this, would you be able to do this instead?

That should not be possible. There is always a folderid associated with a file. We will look into this and fix it.

In order to find those files go to the Administration/Maintenance and the click on “Database Cleaner”. There you can execute the needful. There are no other options.

I looked at this maintenance link. It only found the one file which I uploaded using Postman (as per the image I showed you). All the other files (shown in the other earlier image) were Not shown on this page.

The above is just a small subset of expected records which ‘do not’ have a folder associated to them. There should be a way to find and remove these?

As I’ve mention, there is no way to do this as it should not even be possible.

That said, you need to assign a folderid to files. Please do so on upload.

We will fix the issue.

If you find them (as per your screen shot) then simply remove them. Call me confused…

Please do not post images with your API key on here. This is a public forum and everyone can see it and thus hack your installation.

I’ve removed it now.

The message below my screenshot mentions that these search results were for a ‘subset’, for which I knew a search term to find them.

For most images I do not know a search term. So how can these ‘yet to be found’ images be removed?

Or atleast; how can folderless images be found and then allocated a folder? Because I fear, that Razuna API would return a ‘image already exists’ response, If I were to retry the upload with the correct folderid.

As already mentioned multiple time, there is no options to find images that are not assigned to folders. The maintenance db cleaner should have taken care of this, but I’m guessing that your folderid has an empty string. Therefore they can’t be found.

Do you want us to remove those files for you?

As also mentioned, we will issue a patch that will fix the API.

yes please, would be great if you could remove the files which are uploaded by me ‘Sanket Deshpande’ && do not have folders assigned.

That would be the outcome I am looking for.

Thank you!

Ok, all images without a folder id have been removed.
PS: We’ve fixed the issue in the meantime, but have not updated your server yet.

Awesome!

Thanks for resolving the folderless images issue and deleting them!

Glad that this API issue can’t affect your other customers now…

Thanks for the great communication!