Edit view upload file
-
I would like to change the display of the downloaded file to a shortcode [wtf_fu_show_files]to this:
http://www.screencourier.com/image/40E45C5A705583292uounf0pm3And remove the DELETE button
Is that possible?
-
install plugin CyrtoLat
<?php echo get_the_title();?>change to<?php echo the_slug(); ?>
in file theme function.php add this:function the_slug() { $post_data = get_post($post->ID, ARRAY_A); $slug = $post_data['post_name']; return $slug; }its work!
but files nameАдминистрирование базы — РєРѕРїРёСЏ.docthat’s good.
note that it will only work if the directory name is a legal directory name.
Also note that if your server is on windows you may have unicode issues with international characters, on linux servers international characters will behave better.
How to be named upload files?
Cyr2Lat plugin converts name only when upload via mediafilesThe filenames are whatever the file you drop on the upload page is already named.
If you need to change the filenames you will have to write your own function to do that. If you use a workflow process then you could hook your renaming function into a post hook to run after an upload stage has completed, look at the demo workflow if you want to try that.
In other words, Work The Flow File Upload not support file names Cyrillic 🙁
very sorry that I spent outside your time plugin is really good, if not the last: (
It has nothing to do with the Work The Flow File Upload plugin but with the OS that your system is running on.
What I was saying is that if you are on windows then try it on a linux server as linux has proper unicode support unlike windows.
So if the Cyrillic filenames are mangled after uploading, and you are using windows, then try it on a linux host.
Linux has full unicode support so Cyrillic should be fine to use in file names.
It’s complicated but you can read more about this problem here.
https://bugs.php.net/bug.php?id=47096The good news is that on a linux web host your filenames should be ok,
so if you are developing on windows (where filenames are mangled) then deploy to a linux web host then it will work.Hope that helps.
http://www.php.net/manual/en/function.iconv.php
and what about this?If you must run your server on a windows host then you can investigate this sort of thing,
But your easiest solution is just to deploy to a unix based host.I must using windows host
before saving the file you want to apply the code converts the encoding
$ filenameFileLocal = iconv ("UTF-8", "WINDOWS-1251", $ filenameFile);please tell me the name of the file name variable and insert the code where
sorry, you will have to investigate that yourself.
very bad 🙁 russian not support THIS plugin
I add
$name = iconv ("UTF-8", "WINDOWS-1251", $name);
to string 500 \work-the-flow-file-upload\public\includes\UploadHandler.phpfile save to Cyrillic
This is not an issue with this plugin but with php on windows OS.
The same problem will occur with any sort of php based file upload on windows servers.
Sorry but there is nothing I can do about this. I believe that PHP 6 will provide full unicode support when it comes out and that will solve this problem.
For now you have to use a linux host or implement your own encoding logic on windows. It is a very complex issue so I don’t recommend that unless you have sound knowledge in this area.
The topic ‘Edit view upload file’ is closed to new replies.