HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Mass Upload/Import of Images using URL option

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#107834 (In Topic #21029)

Fan in action

Environment:
ocPortal version 9.0.19
Browser = IE 11, latest updates installed
OS = Windows Server 2008 r2, latest updates installed
Server = 16 gig Ram, 500 gig hard drive, 388 free

 
Kudos to ocPortal developers and the community. Our site is up and working, I am teaching our biz users to enter their own wiki content, rolling out the forum to customers soon. Other than the import issue below, we are at the phase of people asking “can you move that icon to the left of the name instead of the right.” Success :thumbs:

The only content issue remaining is uploading a library of images (jpegs, etc.). This page and related:
http://ocportal.com/docs9/tut_adv_galleries.htm   covers the mass import, but it does not seem to be working as one would expect.

How can one select a directory structure of images to upload? The “uploads/galleries” folder does not seem to allow hierarchical selections, only dumping all files in said folder. We have too many images to place in a single location, but must have sub-galleries and thus a directory structure.

The option of uploading a single zip file is a great idea. However, that imports the images into the database, as it should. It does not use the URL option. Which leads me to…

Related, we need to use URLs, not imports, as we do not want our MySQL backup file (already 330 meg) to get any bigger by several gigs of pics, that are backed up elsewhere. It seems when one does a mass import of videos (which I did use the “uploads/galleries” folder for, it correctly added URLs and did not upload the files. So this part seems to be working as one would expect.  But the “mass upload” seemed to want to actually load the images into the database.

If anyone could add some clarity here it would be appreciated.
 
Back to the top
 
Posted
Rating:
#107836
Avatar

Hi,

ocPortal never stores binary data in the database. The URL vs upload thing is purely a UI convention that there to let you specify a URL manually or manipulate the assigned URL of the uploaded file during later editing.

So, I would recommend importing to each gallery using a zip.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107845

Fan in action

Sigh, no joy. Trying to mass import the zip file.

Max_file_uploads = 2000
Upload_max_filesize = 1000M


The zip file is 376 meg.

Get this error:
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length.


Help.  :(
Back to the top
 
Posted
Rating:
#107846
Avatar

Community saint

That error is generated by the Windows web server (IIS). I think you just need to edit the IIS settings to increase the maximum request content length. I'm not an IIS user, so I can only point you to some links that might help:

http://www.shubho.net/2011/01/http-error-40413-not-found-request.html
asp.net - Maximum request length exceeded - Stack Overflow
Back to the top
 
Posted
Rating:
#107853

Fan in action

Thanks for the link Jason.

I changed said IIS settings and tried the big zip file again. This time, I got an ocPortal popup mesage immediately after hitting the "upload" button in the "mass add" section of the page. The error is:

tried to upload a file which was larger than the maximum allowed size

As shown above, my max allowed settings in PHP are way above that. Any ideas anyone?

Thanks
Back to the top
 
Posted
Rating:
#107854
Avatar

There's an ocPortal maximum size option IIRC, and also look at PHP's max_post_size.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: