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.


[RESOLVED] uploading PDF

Login / Search

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

Well-settled

uploading PDF

uploading PDF says "file rejected" why how do I fix it?


Last edit: by na7kr
Back to the top
 
Posted
Rating:
#71125
Avatar

Community saint

Check to see if pdf is included as a valid file type in Setup->Configuration->Security options: Uploaded files.

Also, check to make sure the maximum filesize is not exceeded in Setup->Configuration-Site options: Uploads.

Finally, make sure the file is not larger than what is allowed by your server (set in php.ini).


Last edit: by BobS
Back to the top
 
Posted
Rating:
#71126
Avatar

Well-settled

The first 2 are OK
What is the line in PHP.INI
Back to the top
 
Posted
Rating:
#71127
Avatar

Community saint

It will look like this:

Code

; Maximum size of POST data that PHP will accept.
post_max_size = 64M

Note that if you are on a shared host, they may have imposed a limit which you will not be able to change.

Is your file larger than 64MB?

Bob
Back to the top
 
Posted
Rating:
#71128
Avatar

Well-settled

Yes that was Ok
Back to the top
 
Posted
Rating:
#71129
Avatar

Community saint

Try using the simple uploader - there is a link just below to change to it.

I know I had some problems using the Flash uploader in v7.0.1 but they seem to be gone now in 7.1. If it uploads with the simple uploader, make sure your version of Flash is up-to-date. If you will be having your members upload images, you might want to force the simple uploader.

Bob
Back to the top
 
Posted
Rating:
#71130
Avatar

Well-settled

Does not work also..
Found that small pdf files upload but large 22meg fies do not
Back to the top
 
Posted
Rating:
#71131
Avatar

Community saint

You can check with your hosting provider to see what limitations they put on uploads in php?

Where is the file being used? Gallery? Downloads? Catalog entry?

Bob
Back to the top
 
Posted
Rating:
#71132
Avatar

Well-settled

Catalog.
I have full access to php.ini to make any changes
Back to the top
 
Posted
Rating:
#71133
Avatar

Community saint

Not sure what else it could be then. Perhaps someone else will have a clue.

This does demonstrate why the uploader should be standardized throughout ocPortal to always include URL. This would provide a workaround for this situation since you could FTP the files into place and then reference them by URL.

Sorry I can't think of anything else.

Bob
Back to the top
 
Posted
Rating:
#71134
Avatar

Community saint

Just looked at what I had posted earlier. in php.ini, look for the following:

Code

; Maximum allowed size for uploaded files.
upload_max_filesize = 64M

Bob
Back to the top
 
Posted
Rating:
#71136
Avatar

Community saint

Have you checked out the limits set in the Upload section of Admin Zone » Setup » Configuration » Site options ?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#71138
Avatar

Community saint

Also, take a look at these settings in .htaccess:
<IfModule mod_php5.c>
# ocPortal needs uploads; many hosts leave these low
php_value post_max_size "16M"
php_value upload_max_filesize "16M"


Last edit: by BobS
Back to the top
 
Posted
Rating:
#71146
Avatar

Well-settled

Have you checked out the limits set in the Upload section of Admin Zone » Setup » Configuration » Site options ?   Yes it OK
Back to the top
 
Posted
Rating:
#71148
Avatar

Well-settled

do not see it in .htaccess
set in php.ini
post_max_size = 60M
upload_max_filesize = 60M
do I add them also to .htaccess
Back to the top
 
Posted
Rating:
#71149
Avatar

Community saint

They might not be there unless you renamed recommended.htaccess to .htaccess.

But that would rule that out as a problem.

Hopefully, someone more knowledgeable than me can jump in.

Bob
Back to the top
 
Posted
Rating:
#71189
Avatar

Well-settled

Is there a way to manual upload them (ftp etc)
and attach then?
Back to the top
 
Posted
Rating:
#71191
Avatar

Community saint

w1ngl said

Is there a way to manual upload them (ftp etc)
and attach then?

You can most likely change your field type to "An URL" and then just provide the path to wherever you have uploaded the files. This works for site staff but is not a solution if you have members uploading to a catalog which is why I wrote above:
This does demonstrate why the uploader should be standardized throughout ocPortal to always include URL. This would provide a workaround for this situation since you could FTP the files into place and then reference them by URL.

I guess you could always tell your members to keep their uploads below a specified file size.

Bob
Back to the top
 
Posted
Rating:
#71216
Avatar

Well-settled

Now getting the error below with simple uploader (Waithing for there reply)
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Back to the top
 
Posted
Rating:
#71218
Avatar

Well-settled

is there a way to use Bulk media upload to work with pdf files? or any other addon?
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand