[Plugin: Frontend Uploader] Upload video
-
Hi guys!
This plugin is so so useful, but now i wanna do an upload of video (3gp, avi, and other) by my users, i tried follow FAQs, i have copied this in theme’s function.php:
add_filter ('fu_allowed_mime_types', 'my_fu_allowed_mime_types'); my_fu_allowed_mime_types funzione ($ mime_types) { / / Array di 3gp tipi mime / / Da https://filext.com (ci potrebbe essere di più) $ Mimi = array ('audio/3gpp', 'video/3gpp'); / / Scorrere tutti i tipi MIME e aggiungere questo mimo specifico per permettere foreach ($ mimi da $ mimo) { / / Conserva la mime_type $ Orig_mime = $ mimo; / / Lascia solo caratteri alfanumerici (necessario per la chiave dell'array unico) preg_replace ("/ [^ 0-9a-zA-Z] /", "", $ mimo); / / Soluzione per le chiavi degli array unici / / Se-re andare a modificarlo per i tuoi file / / Non dimenticate di cambiare l'estensione in chiave dell'array / / Esempio $ mime_types ['pdf | pdf_'. $ Mime] = $ orig_mime $ Mime_types ['3 gp | 3gp_ '. $ Mime] = $ orig_mime; } return $ mime_types; }
But now, how edit this code?
[fu-upload-form class="your-class" title="Upload your media"] [textarea name="caption" class="textarea" id="ug_caption" description="Description (optional)"] [input type="file" name="photo" id="ug_photo" class="required" description="Your Photo" multiple=""] [input type="submit" class="btn" value="Submit"] [/fu-upload-form]
Thank you!
https://www.ads-software.com/extend/plugins/frontend-uploader/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Frontend Uploader] Upload video’ is closed to new replies.