Upload Query

Need help? Post your questions here.

Moderator: moderators

Upload Query

Postby jaume » Sun Nov 07, 2010 4:02 pm

Hi there,

I am trying to allow some users to upload files remotely and I cannot seem to find these anywhere:

a) How do I choose the location where the files will be uploaded
b) How do users upload files

Many thanks for any help provided.
jaume
 
Posts: 62
Joined: Thu Oct 07, 2010 5:45 pm

Postby GJ51 » Sun Nov 07, 2010 7:01 pm

The User has to be authorized to do uploads, Settings/Users check box "User is allowed to upload files".

To upload a file, Click on More then scroll to the bottom of the top frame. It's right under Podcast settings.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby nipar » Sun Nov 14, 2010 11:14 am

It's also worth noting that for multiple files and/or folders to be uploaded you should create a zip file. Zip files are the only way to upload folders. I tried on my linux server to upload a .tar.gz file, subsonic allowed the upload but didn't automatically unzip it and create the files or folders.

Turns out you MUST use a file with the .zip extension.

The nice thing is that when using a .zip subsonic will unzip it, create the folders and files as found in the archive and then deletes the zip file so it doesn't take up room on your drive. :)

Windows XP and later create zip files by using the right click on the files or a folder with sub-folders and files in it and clicking "Create Archive".

Linux users will find that tar will create compatible zip files by just specifying the archive name with a ".zip" extension.

--
nipar
 
Posts: 19
Joined: Fri Nov 12, 2010 6:07 am

Postby jaume » Wed Mar 09, 2011 7:30 pm

Many thanks for this. Is there a way of choosing the default folder where other users upload to?
jaume
 
Posts: 62
Joined: Thu Oct 07, 2010 5:45 pm

Postby GJ51 » Wed Mar 09, 2011 8:04 pm

Click on the "More" button at the top.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby sekhu » Sat Mar 12, 2011 3:16 am

hi

I'm having problems uploading at the moment I get this error:

Uploading failed with the following error:
"Permission denied: M:\<filename>.zip"

Where can I change the DEFAULT path of the upload directory and how can I set the permissions for it?

The default path set seems to be the path for the first directory I added in subonic as my music/video folder which is: Y:\SUBSONIC\STREAMING\Video

So I changed it to M:\ and then tried to upload the file and it wouldn't. So when it refreshed it went back to the default folder path as stated i: Y:\SUBSONIC\STREAMING\Video/incoming I dont have an incoming folder so I created one, set permissions and it would not have anything upload to it whether it was an upload only account or my admin account.

Any thoughts on this? I just can't change the default path. I did click on more and that didn't work either.

Maybe someone can point out my ignorance?

thanks in advance
sekhu
 
Posts: 20
Joined: Fri Mar 04, 2011 10:47 pm

Postby GJ51 » Sat Mar 12, 2011 4:46 am

It's pretty hard to guess what your problem is without knowing more about your system. Little things, like the OS being used are a tad relevant. By default, Subsonic uses a directory named Incoming, usually in the Music subdirectory. I keep all my media stored on my F: drive, so I use F:\Music\Incoming as my upload directory. Assuming your install of SS has a music folder with subdirectories that you can access to play music, if your incoming directory is a subfolder of the Music directory, just like other music folders, there should be no permission issues.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby sekhu » Sat Mar 12, 2011 9:49 am

by default on my installation it's using the first folder which I've added which is the video folder, the music folder is mapped further down the list.

ideally i want two different upload folders, I don't know if this is possible. For example one for music, one for video.

IN nay case i@m on win 7 pro x64, with the latest java install and using subsonic 4.4. Though I did notice that in the log it said:

INFO VersionService - Resolved local Subsonic version to: 4.4
INFO VersionService - Resolved latest Subsonic final version to: 4.4
INFO VersionService - Resolved latest Subsonic beta version to: 4.4.beta1

I dont know if that's significant but is it automatically updating to the beta release? I haven't checked the box which says someting like inform you about the latest updates/betas so I dont know why it say that.

Also the log is producing the following error:

WARN UploadController - Uploading failed.
org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at net.sourceforge.subsonic.controller.UploadController.handleRequestInternal(UploadController.java:80)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:227)
at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:626)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:290)
at org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:1017)
at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:995)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:959)
at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
at java.io.InputStream.read(Unknown Source)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:354)
... 56 more
Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
at org.mortbay.io.ByteArrayBuffer.readFrom(ByteArrayBuffer.java:172)
at org.mortbay.io.bio.StreamEndPoint.fill(StreamEndPoint.java:107)
at org.mortbay.jetty.bio.SocketConnector$Connection.fill(SocketConnector.java:197)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:282)
... 64 more


I've uninstalled Java and installed a fresh copy, did the same with Subsonic. Haven't done any mods or anything, it's still default pretty much except for options changes within Subsonic.

thanks
sekhu
 
Posts: 20
Joined: Fri Mar 04, 2011 10:47 pm

Postby GJ51 » Sat Mar 12, 2011 5:30 pm

Only one upload folder is allowed as far as I can tell. If you keep it simple, it should work. Use the KISS method. The incoming folder should just be a temporary holding area that allows you to screen submissions before integrating them into your library in an appropriate location. It shouldn't be too difficult to manage incoming video and music from this folder unless you've figured out how to que a bittorrent to upload multiple files directly to the folder. Let us know how you did that! :wink:
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby sekhu » Sat Mar 12, 2011 6:08 pm

ok but what could possibly be causing the incoming folder from not showing or demonstrating that a file is being uploaded to it?
sekhu
 
Posts: 20
Joined: Fri Mar 04, 2011 10:47 pm

Postby 3R3 » Sat Mar 12, 2011 7:48 pm

the relevant bits from the log:
Code: Select all
WARN UploadController - Uploading failed.
org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null
(...)
Caused by: org.mortbay.jetty.EofException
(...)

seems either the disk is full, you have no writing permission on the folder you try to upload to (try to create an "Incoming" folder within your default music folder or just change permission if present) or the ZIP archive was corrupt ("eof" = end of file, repack your ZIP)
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany


Return to Help

Who is online

Users browsing this forum: No registered users and 25 guests