Hy . I'm trying to upload an archive (for others to download) to my (free) blog hosted by wordpress but seems a bit tricky. Such file.types are not permitted but found something interesting & not enough simple for me. Any thoughts ?
add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( $existing_mimes=array() ) { // add the file extension to the array $existing_mimes['rar'] = 'mime/type'; // call the modified list of extensions return $existing_mimes; } [/CODE]
Question
Cosmin
Hy . I'm trying to upload an archive (for others to download) to my (free) blog hosted by wordpress but seems a bit tricky. Such file.types are not permitted but found something interesting & not enough simple for me. Any thoughts ?
Thanks!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts