Good afternoon to every one, I am making a product that uses File System Storage using site2 strategy like a dependency. My product, create files vorbis/theora using "ffmpeg" to serve audio and video using HTML5 and a nginx server. Because of that, I create the new file begining whit the original file that FSS put in a path on the hard drive. In other words:
1) The user upload a file using Plone and FSS put that file in a location in the hardrive like
/home/zope/FSSstorage/Folder/of/File/myfile.old
then ffmpeg take the file
2) ffmpeg -i /home/zope/FSSstorage/Folder/of/File/myfile.old +some+parameters output.ogg
A browserview class check the path using the context.absolute_url() method and taking the name of the uploaded file using the configuration file fss.cfg that File System Storage make in each folder that create after the upload read the name of the uploaded file to pass to the transcode file to pass them to ffmpeg.
The problem is when I want delete some files.
If make clic on the cancel button delete_confirmation form of Plone, My view read the file but in that specific moment the file fss.cfg is not in that position, because of that I get a IOError for the method that read that File.
The question is:
How can I get the name of the uploaded file whitout read the fss.cfg in the browserview o my contenttype? In that wat, I do not have to read again the file fss.cfg :-)
Or what could recommend to avoit the IOError when the browser view is loaded?.
Thanking a answer from now, :-)
Victor Teran