• I couldn’t find a file manager for files uploaded for WP 1.5 so I made this really quick. I was going to see if I could make this into a plugin but I’m not really sure how. Maybe someone could help me with that so that the menu.php file wouldn’t have to be edited.
    Also I’m not sure about any security risks with the way I wrote this. It uses the settings for uploading to determine who can access the page. I haven’t added any confirmations for deletion either. If anybody has any suggestions or any other comments let me know.

    click here to download.

    Instructions:
    1.Put upload-manager.php in the wp-admin folder.
    2.Find this line in menu.php:

    $submenu['themes.php'][10] = array(__('Theme Editor'), 8, 'theme-editor.php');

    After that line add this:

    if ( get_option('use_fileupload') ) {
    $submenu['upload.php'][5] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php');
    $submenu['upload.php'][10] = array(__('Upload Manager'), get_settings('fileupload_minlevel'), 'upload-manager.php');
    }

    3.Your done.

Viewing 15 replies - 1 through 15 (of 17 total)
  • I spoke too soon. I do have menu.php in admin

    Thread Starter skp

    (@skp)

    I added deletion confirmations and the ability to rename files.

    Click here to download it.

    Still wondering if someone could help me turn this into a plugin.

    I can’t get this plug-in to work. I have no trouble instaling but when I go to file upload admin page, the page doesn’t show me the list of files that I already have. Is there any requirement for this plug in to work? I am running WP 1.5.

    thanks,
    Sarah

    Thread Starter skp

    (@skp)

    After you install this there should be 2 tabs under Upload…Upload and Upload Manager. Can you see the Upload page correctly? If you can you try going to the Upload Manager page directly to see if its working…

    [Your wordpress installation path]/wp-admin/upload-manager.php

    If that works then you might have done something wrong when modifying the menu.php file.

    schun

    (@schun)

    Hi, I am getting the following error..

    I have followed the steps that you indicated above closely. I don’t think I made any mistakes..
    When I go to upload Manager page, I get the following message on top of the page and don’t see the list of files that I have.
    I see the heading: List of files in http://….. and just below there are two sub-headings: Size, filename and lastely Delete All link. but the lists are empty. I know there are few files in my folders so its defintely incorret.

    Warning: Cannot add header information – headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/upload-manager.php:6) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 6

    Warning: Cannot add header information – headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/upload-manager.php:6) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 7

    Warning: Cannot add header information – headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/upload-manager.php:6) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 8

    Warning: Cannot add header information – headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/upload-manager.php:6) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 9

    I would love to be able to use this… any suggestions?

    Thanks!
    Sarah

    Thread Starter skp

    (@skp)

    What version of PHP are you using?

    I made a minor change to the upload-manager.php file. I think it should fix the problem you are having. I didn’t know about the whitespace before the first php tag causing problem with php including the headers.

    Try downloading it again and let me know if it works. The new file should have a date of 3/30/2005.

    Mayk

    (@mayk)

    When i use this plugin, the list under upload management is empty.. :S i can upload, but i don’t see it .. i chmod everything including /upload to 777 …

    Thread Starter skp

    (@skp)

    Could you tell me what operating system the server is using? Are you getting any errors or is the list just blank? Do the headers show at least?

    I have only tested this under a Windows 2003 based server. I’m going to test it on other servers. If anyone has gotten it to work on anything else please let me know.

    avigell

    (@avigell)

    I have tried your upload-manager but I have experienced some problems with parameters reading (it didn’t catch the paramaters like ‘delete_all’, ‘confirm’ etc). I’m not a php coder but I’ve made some changes to solve this problem (I’ve just used ‘$_GET’ method to read parameters) and I’ve also added a link to the listed files in the visualisation. I don’t know if it can be useful but you can find the my modified versionhere.
    P.S. My server is based on Ubuntu Linux.

    schun

    (@schun)

    SKP,
    What did you have to do to get rid of header warning?
    Removing the white space??!!
    Thanks!

    avigell

    (@avigell)

    Sorry but I didn’t have any header warning… Does my version solved your problem anyway? In my modified version I’ve also changed the upload path because the old one was not compatible with my server
    (upload_path = get_settings(‘fileupload_realpath’).”/”;
    instead of
    $upload_path = get_settings(‘fileupload_realpath’).”\\”;)

    schun

    (@schun)

    Avigell,
    I tried your version but it was still giving me that header warning problem. BUT I was able to see the files that I have in my folder which is quite an improvement. I guess my server has the similar setting as yours. Thanks for your file! I am going through skp’s file since he mentioned that he made a minor change to remove that header warning message.
    Thanks for your response.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    In response to the “Warning: Cannot add header information – headers already sent” error:

    http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

    sfboarders

    (@sfboarders)

    skp
    Nice mod, everyone if you don’t see your files get the new zip file.

    http://or.ingce.unibo.it/wp-content/upload/uploadmanagerNew.zip

    I wish someone can make a multiple upload tool and have it within the “Write” page. heh 😀

    avigell

    (@avigell)

    That would be a very nice mod, unfortunately I don’t have time to develop it. I’ll continue using an ftp client until someone will develop a multiple upload page! 🙂

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘My Upload Manager’ is closed to new replies.