WordPress.org

Ready to get started?Download WordPress

Forums

Magic Fields 2
Can I upload via FTP and add it to a field? (3 posts)

  1. another13
    Member
    Posted 1 year ago #

    Hello,

    Can I upload a file via FTP and associate it to a field?
    I need to upload videos up to 300MB.

    I think I saw some plugin but I'm not able to find it.

    Thanks.

    http://wordpress.org/extend/plugins/magic-fields-2/

  2. Magenta Cuda
    Member
    Posted 1 year ago #

    There are 3 things that happen when Magic Fields uploads a file for example slickr-flickr.1.43:

    1. A file is created in the wp-content/files_mf folder with a funny name like 1367689575slickrflickr.1.43.zip.

    2. A row is created in the wp_postmeta table.

    +---------+---------+-----------+---------------------------------+
    | meta_id | post_id | meta_key  | meta_value                      |
    +---------+---------+-----------+---------------------------------+
    |    7087 |     101 | data_file | 1367689575slickrflickr.1.43.zip |
    +---------+---------+-----------+---------------------------------+

    3. A row is created in the wp_mf_post_meta table.

    +---------+------------+-------------+-------------+---------+
    | meta_id | field_name | field_count | group_count | post_id |
    +---------+------------+-------------+-------------+---------+
    |    7087 | data_file  |           1 |           1 |     101 |
    +---------+------------+-------------+-------------+---------+

    So you can do the equivalent of a Magic Fields 2 upload by doing these 3 things.

    However, it may be easier to upload a small file to create all the entries. Then delete this small file remembering to save the file name then use FTP to upload your real file to the wp_content/files_mf folder and rename it to the name of the deleted file.

  3. Magenta Cuda
    Member
    Posted 1 year ago #

    I just noticed a typo, the first line should read:

    There are 3 things that happen when Magic Fields uploads a file for example slickr-flickr.1.43.zip.

    The typo may mislead you into thinking Magic Fields 2 creates zip files which is not the case Magic Fields 2 does an exact copy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic