Does wsform store a clean path/name somewhere? (i.e. “ws-form/1/633d7d1bd95651caf5e54fa0ccdf9f4f/1/thumbnail-canmandawe-ftTsK4QinMw-unsplash-1.png” from the example above?
You are correct that the file data is stored in a serialized array. There is no raw version of the filename available in the database. You would need to deserialize the data first using the PHP and then extract the filename from the array element called ‘path’.