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.


curious on how to add upload feature via the web for my vendors

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#80270 (In Topic #16300)
Avatar

Fan in action

curious on how to add upload feature via the web for my vendors

Hi, I am a total newb to ocPortal and coding. I was wondering if it is possible to allow my vendors, once signed in to my site, to be able to upload their products directly from the site with out having to use an FTP client.


Last edit: by Robbie Goacher
Back to the top
 
Posted
Rating:
#80274
Avatar

Fan in action

This is the message I get when I try to upload an item to the Products catalog It appears that you have made a file upload but exceeded this servers 'post_max_size' limit (10 Mb) or 'upload_max_filesize' limit (10 Mb). Unfortunately this renders your form submission invisible to the software. Please try again with a smaller size, or get the post_max_size limit increased. An alternate explanation is if you reached this URL manually - this URL is intended solely for processing the result of a form submitted to it, and the catalogue_name parameter is missing.
Back to the top
 
Posted
Rating:
#80277
Avatar

Community saint

If you search for post_max_size, you will find a couple of threads discussing this. However, you may be limited by a hard upper limit set by your host.

Bob
Back to the top
 
Posted
Rating:
#80279
Avatar

Fan in action

Hi Bob and thanks for your reply, yes I have read what I could find by doing as you suggested, and I know that my host does not limit this, but I can't seem to find where I can locate this file, if I have to find it in phpMyAdmin or not, and what settings to change. I believe I have already changed them in the recommended.htaccess file to 128mb, but it still seems to not upload. Any ideas on where exactly I may find such info? Thanks
Back to the top
 
Posted
Rating:
#80280
Avatar

Community saint

If you changed them in the recommended.htaccess file they will not become active until you rename that file .htaccess

If that does not work, you might need to change the setting in a php.ini file. Your host should be able to help you with this.

Bob
Back to the top
 
Posted
Rating:
#80281
Avatar

Community saint

Just so you know what the current settings are, in the Admin area go to Tools->PHP info and check the values for post_max_size and upload_max_filesize

If these are too low, then you can increase them in your php.ini file (check with your host).

Bob
Back to the top
 
Posted
Rating:
#80282
Avatar

Fan in action

Thanks Bob, I was able to find out not only how to fix it, but also that my hosting providor doesn't limit me till I get to 200mb. So thanks again! By the way, if anyone else is having this issue, just change you php.ini file with the post_max_filesize and the upload_max limits to what you need and then copy them from you main root folder (ex. /public_html) to the following folders, admin,cms,collaboration,data,data_custom,personalzone, and site. That should fix it.
Back to the top
 
Posted
Rating:
#80285
Avatar

Community saint

kohly-

Glad you got it sorted.

You should be able to just put the adjusted php.ini in your root directory for ocPortal. All the other folders should inherit the setting. There is no harm to doing it the way you have except that you will have to remember to potentially adjust the php.ini in each of the other folders.

You should leave the topic of this thread as it was with the [Resolved] appended. That will make it much easier for people to find the information in this thread.

Bob
Back to the top
 
Posted
Rating:
#80286
Avatar

Fan in action

Hey just got a quick question for you, how do I make it so when items are placed in carts, after payments have been received, user's are able to donload files they paid for? Can't seem to find it in the tutorials or forums.
Back to the top
 
Posted
Rating:
#80306
Avatar

I have altered the topic title to make it easier for searching, browsing, and general understanding.


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#80308
Avatar

You should be able to just put the adjusted php.ini in your root directory for ocPortal. All the other folders should inherit the setting. There is no harm to doing it the way you have except that you will have to remember to potentially adjust the php.ini in each of the other folders.

Unfortunately untrue. php.ini must be in each folder where there is a .php file called up by URL (i.e. each zone directory, data directory, and data_custom directory). It won't inherit like htaccess does.

People on servers using PHP in CGI mode must use php.ini. Fortunately this is rare. When PHP is in Apache Module mode it respects .htaccess.


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:
#80311
Avatar

Fan in action

Yes Chris unfortunately that is what my hosting providor uses, of course it's rare, lol story of my life. But I do want to tell you just how much I love ocPortal! For a newb such as myself, it far surpasses any other cms out there! There are bugs, that are sometimes hard to figure out, but it is well worth it, and the bugs are small compared to other programs I have tried! I still have a couple of things to figure out, like how to lock downloads until they are paid for, but I am going to stick with ocPortal for sure!  :thumbs:
Back to the top
 
Posted
Rating:
#80313
Avatar



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:
#80315
Avatar

Fan in action

Thank you for your quick reply on this! Much appreciated! All though I am kind of bummed that I have to use another program to acheive this. I do mean what I say about ocPortal though! You guys did a wonderful job in dumming down the program for people like me, who are just starting out! Keep up the good work!!!  :thumbs:  :lol:
Back to the top
 
Posted
Rating:
#80319
Avatar

Community saint

Chris Graham said

You should be able to just put the adjusted php.ini in your root directory for ocPortal. All the other folders should inherit the setting. There is no harm to doing it the way you have except that you will have to remember to potentially adjust the php.ini in each of the other folders.

Unfortunately untrue. php.ini must be in each folder where there is a .php file called up by URL (i.e. each zone directory, data directory, and data_custom directory). It won't inherit like htaccess does.

People on servers using PHP in CGI mode must use php.ini. Fortunately this is rare. When PHP is in Apache Module mode it respects .htaccess.
Thanks, Chris. This is good t know.

Bob
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: