Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

digitalzoomstudio on "Using WP Media Uploader in Outside PHP File"

$
0
0

Hello WordPress Gurus,

I am trying to introduce the WP 3.5 Media Uploader in a custom admin page for a plugin. All works fine except that when I try to upload I get an error:

An error occurred in the upload. Please try again later.

From /wp-admin/async-upload.php I get just -1 response

Test if yourself if you wish - http://thezoomer.net/themeadmin-testmediauploader/wordpress/wp-content/plugins/test_mediauploader/test_mediauploader.php?outsidewp=on

I have also created user with upload capability if you wish to test logged in, but it's the same error - http://thezoomer.net/themeadmin-testmediauploader/wp-login.php

[ User id and password redacted ]

I am really stuck in making upload work. Any help is welcome.

Code

test_mediauploader.php - http://pastebin.com/yPP4CJY3

get_wp.php - http://pastebin.com/qmaCji97


Viewing all articles
Browse latest Browse all 8245

Trending Articles