WordPress.org

Support

Support » Plugins and Hacks » Can I upload via FTP and add it to a field?

Can I upload via FTP and add it to a field?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I upload via FTP and add it to a field?’ is closed to new replies.