For example, I have a case where a file actually named PC074941_0.jpg appears in the view listing as PC074941.jpg, and this is not helpful. The view correctly links to the proper file.
I see that this is because in the data table 'file_managed' the name of the file is recorded as PC074941.jpg and its URI as public://frontpageimages/PC074941_0.jpg
This situation arises when uploading a file that has an already used name. The upload process has added the suffix _0 in the URI but has not modified the name. Surely it would be more helpful if it were to modify the name as well?
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE