Page 1 of 2

Default Upload Directory

PostPosted: Fri Jul 25, 2008 12:59 am
by kapz
Maybe I’ve missed something. There is a default path in my Upload to box and I can't seem to find a way to change it.

This is kind of a feature request, but I'd prefer that the user not be able to upload files to any valid folder they type. I'd like all uploaded files to start in an "Unsorted" type of folder so I can monitor duplicates and junk files.

- It seems that any file type can be uploaded. What about limiting to only files that match the Music Masks (and zip files)? A zip could contain junk files like an exe, but maybe you could code to delete all files that don't match the file masks after unzipping (if unzip checkbox is checked)

- Maybe adding a checkbox next to the music folders that says what folders can be uploaded to and change the "Upload To" textbox to a dropdown of the checked music folders.

PostPosted: Tue Feb 03, 2009 6:06 pm
by squipple
I also would like to know where I can change this path. I want to change the default path that shows in that field.

PostPosted: Sat Feb 07, 2009 6:47 pm
by jannuh
After someone uploaded some exe files I have disabled uploading, but it's a pity, cause many peeps don't understand FTP to upload or haven't a ftp program.

PostPosted: Sun Feb 08, 2009 4:29 am
by BrianDelShasta
Edit line 129 of more.jsp. I added a new directory and also readonly so no one can change it:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly ="true" size="37" value="c:\uploaddir"/></td>

PostPosted: Sun Feb 08, 2009 8:57 am
by jannuh
BrianDelShasta wrote:Edit line 129 of more.jsp. I added a new directory and also readonly so no one can change it:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly ="true" size="37" value="c:\uploaddir"/></td>

When I try this I'll get "permission denied"

PostPosted: Sun Feb 08, 2009 11:33 am
by BrianDelShasta
The value 'C:\uploaddir' is only an example. Make sure you use a folder that actually exists and has proper permissions set.

PostPosted: Sun Feb 08, 2009 8:02 pm
by jannuh
Hi Brian,

Thanks for your reply, I did change btw to my own uploaddir; I'll give it a try later on.

PostPosted: Sun Feb 08, 2009 10:06 pm
by BrianDelShasta
Does the subsonic account you are attempting to upload with have upload permissions?

I guess I'm assuming that before making any changes to more.jsp, you could already upload successfully. If that is not the case, then there are other issues present.

PostPosted: Wed Apr 29, 2009 4:15 am
by mixmaster
dang, so it is not possible to change where uploaded files go? I'll definitely not enable this as I won't let uploads go into my live collection.
________

PostPosted: Wed Apr 29, 2009 4:59 am
by mixmaster
nm, the way it was left from jannuh sounded like it wasn't gonna work. I was able to change it. grrooooovy.
________

PostPosted: Fri May 01, 2009 9:55 pm
by VintageGold
BrianDelShasta wrote:Edit line 129 of more.jsp. I added a new directory and also readonly so no one can change it:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly ="true" size="37" value="c:\uploaddir"/></td>


I've been using this program for a couple of months and loved it so much I made a donation. Great job, Sindre, on a fantastic program!

I used the syntax indicated above and want my upload directory to point to G:\Music\Incoming, which I created in this directory on the XP machine, but I receive the Permission denied error.

I'm logged in with an administrator profile that has upload permissions, so I'm fairly confident in that fact. I've uploaded from this profile several times to the default directory with no issues. I checked the actual folder permissions on my XP machine and know the new directory and the default directory are both set to Read Only, which seems to work with the default directory.

Here's how I entered it:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly ="true" size="37" value="G:\Music\Incoming"/></td>


I noticed there was a space between readonly and ="true" so I tried removing it like this:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly="true" size="37" value="G:\Music\Incoming"/></td>


This also gave the Permission denied error. However, if I hard code it to be the default directory, G:\Music\MP3's\Incoming, I don't get the error:

Code: Select all
<td><input type="text" id="dir" name="dir" readonly="true" size="37" value="G:\Music\MP3's\Incoming"/></td>


It seems I may be doing something wrong. Any help on this would be greatly appreciated.

PostPosted: Sat May 02, 2009 2:50 am
by mixmaster
I guess I read this in another thread, but the directory needs to be in part of the directory structure that is used for your collection. You can just go to folders and add G:\Music\Incoming as a folder and it should work.

For Example, mine is like:

G:\Music\Genre1
G:\Music\Genre2
G:\Music\Incoming

I add each of these folders in Subsonic and each shows in the dropdown in the folder list on the left.
________

PostPosted: Sat May 02, 2009 3:00 am
by VintageGold
The post from BrianDelShasta seemed to indicate you could change it from the directory your music was in. If what mixmaster writes is correct, isn't that the default directory Subsonic already creates for you? In my case, the music folder I use is like this:

G:\Music\MP3's

So the upload folder would be:

G:\Music\MP3's\Incoming

But I'd like it to just be:

G:\Music\Incoming

because, as you can imagine, the actual directory my music is in has a lot of folders in it already. I'd like to do this as a simpler way of getting to new stuff that's been uploaded. :D

Any thoughts from anyone else?

PostPosted: Sat May 02, 2009 3:28 am
by aphuey
What if you added the G:\Music\Incoming folder as a 2nd music share in Subsonic. This might let you hard code it and get past the error...

Although, I admit, BrianDelShasta's post does make it sound like you could pick any folder with the correct permissions and hard code it and have it work...

PostPosted: Sat May 02, 2009 3:48 am
by VintageGold
I have other temporary music folders inside of G:\Music that I don't necessarily want intermingled with the rest of the main collection inside of G:\Music\MP3's. Some of these include folders with CD's that have just been ripped that may not include the cover art yet so I'm not quite ready to add them to the main MP3's folder. I'm afraid if I also added G:\Music to the list of music folders in Subsonic it will throw my work flow off.

If it's really not possible to move the folder, not a huge deal, but would be just one more bonus to an already exceptional program.