Support » Plugin: Frontend Uploader » [Plugin: Frontend Uploader] Upload video

  • Claudio


    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 (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"]

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Claudio


    I tried upload a .mov file, but appear white page with 0 on top-left of the page, instead put a .3gp file, the uploading works (appear) but there isn’t this file on Manage UGC (sorry for my english)



    Add others info: when i try put file.3gp have this debug on address bar: http://localhost/wordpress/?response=fu-error&errors=fu-error-media:file.3gp

    Plugin Author Rinat Khaziev



    Your code contains syntax errors (extra spaces between $ and variable names, missing semicolons. Also, variable names in PHP are case-sensitive. Please fix those errors and let me know if you still get errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Frontend Uploader] Upload video’ is closed to new replies.