FTP file manager AS wordpress site
Perhaps WP-Filebase would be a suitable plugin for you.
Perhaps WP-Filebase would be a suitable plugin for you.
a simple way would be to set a cookie with a timestamp when they submit the form, then check for the cookie and valid timestamp when they hit the url to download the file. a more complicated process would be to generate a unique url key for each user, put that in a db table … Read more
I had given a rest to this problem and returned it back today with a fresh mind.. I noticed that the problem is about file upload function.. I revised the code as below: $attach_id = media_handle_upload( $file_form_handler, $post_id ); if ($attach_id != false){ // if the attachment is loaded, register them as post meta $file_load … Read more
The above code didn’t work because of browser security. I’ve decided to go with this code: <?php global $post; the_post(); $location = get_post_meta($post->ID, ‘sc_stace_resource_location’, true); $count = (int) get_post_meta($post->ID, ‘sc_stace_view_count’, true); $count++; update_post_meta($post->ID, ‘sc_stace_view_count’, $count); ?> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”> <html> <head> <title><?php the_title(); ?></title> <meta http-equiv=”REFRESH” content=”1;url=<?php echo $location; ?>”> </HEAD> … Read more
In order to show $_FILES or $_POST, you will need to create a sumbenu_page under the post_type. Then, you will be able to manipulate $_FILES and $_POST in whichever way you want. This means that upload_screen() function should be a submenu page.
saving file to external server vip
Making a custom upload form and page in the admin section
get_attached_file() can do this, given you know attachment ID for input.
Folder Permissions + Security Concerns
Victor, Maybe this is helping you. http://goo.gl/9sahyp Regards, Hugo