WordPress.org

Ready to get started?Download WordPress

Forums

Frontend Uploader
Upload video (4 posts)

  1. claudioesempio
    Member
    Posted 1 year ago #

    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 http://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!

    http://wordpress.org/extend/plugins/frontend-uploader/

  2. claudioesempio
    Member
    Posted 1 year ago #

    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)

  3. claudioesempio
    Member
    Posted 1 year ago #

    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

  4. Rinat Khaziev
    Member
    Plugin Author

    Posted 1 year ago #

    Hey,

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic