• Hello All,

    I do not like the default behavior of dumping everything into wp-content/uploads and have created separate folders for audio, powerpoint slides, and pdf’s.

    The problem is now I’ve shot myself in the foot because I can’t use the nice upload media buttons anymore since they point to a different path.

    I was wondering if it were possible without an incredible amount of time/effort to create a means by which if I upload a .ppt it automatically puts it in one folder, .pdf’s upload to another, .etc.

    I would also like the ppt’s to get automatically wrapped in a link that points to a .ppt icon, and the same for pdf’s. Is there a plugin that does this?

    Currently I’m uploading via ftp…then pointing to the url in the post..then hacking up the links it creates to make a relative path to my custom folders, icon links..etc. It would be great if there were a “upload ppt”, “upload pdf” button that would do it for me..I’ve heard there is some client software that makes it easier to upload posts to wordpress..should I look into that instead?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dlvonde

    (@dlvonde)

    ok..let me break this down

    Step 1) When uploading a file from my computer, how would I make a function that says “if file is .ppt, upload here, if it’s .pdf, upload here, if it’s .mp3, upload here”

    2) Then how do I make sure the .ppt and .pdf file gets wrapped in my custom html tag to point to the right paths,use the right style..etc.?

    Thread Starter dlvonde

    (@dlvonde)

    Alright, I think I found the solution to part 1 by using the custom upload dir plugin. I’m comfortable settling with setting upload path by category (wp-content/uploads/%category&

    Now, I’d like to automatically wrap the powerpoint path in an html tag that sets it to float:right, gives the path to the image icon..etc.

    Currently I’m using the csv importer and excel functions to automate the file wrapping part..but I’d like it to be one neatly packaged solution from the post editor.

    Thread Starter dlvonde

    (@dlvonde)

    well now I’m back to square one. I had a clumsy workaround where I’d just paste all the code in a “dummy” post with instructions on how to make a new post and change some of the text in the tags, but this depended on other users being able to upload to my site via ftp. Apparently dreamhost won’t allow me to give ftp access to others within my domain sub-directories so they HAVE to upload from within WordPress…so now I’m back where I started. I need to see if I can do something like this:

    1) in the new post/edit post window have new buttons such as, Upload PPT, Upload PDF (Upload audio is already there.)
    2) When PPT’s are uploaded they should automatically go in one folder, PDF’s in another, Audio files in another.
    3) After uploading the files, each file type should be wrapped in a different html tag. For instance, powerpoint files will be float:right, point to the PPT path, and also have an img source of pptIcon.jpg. etc.

    Any help? My only other option is to give several people my admin login info for the ftp site which could be very dangerous!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need More Control Over file uploading’ is closed to new replies.