This Help forum is for issues relates to the latest release (1.1.x). For issues related to beta or svn version please use their own Help forum.
When requesting help please provide as much information as possible. Explain what version of webtrees, PHP and MYSQL you are using. If possible provide a URL to your site so we can see the problem first-hand.
Tip: Think about putting these details in your signature, so it appears in the footer of ALL your messages
  • Page:
  • 1

TOPIC: Issue with File upload...

Issue with File upload... 9 years 1 day ago #1

  • itowler
  • itowler's Avatar Topic Author
  • Visitor
  • Visitor
I hope I can get some help on this one....

I am trying to upload a pdf file that is 8.25 m as a media item.

It fails everytime.... upon failing it just spits you right back to the Add media screen/wizard/dialog

Before you ask, php max upload is set to 12m...

Any ideas what the issue is.

I have uploaded the file here...
C:\fakepath\Arbuckle-Family-Records-1299497-1.pdf


ian

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #2

Ian

I can't tell you the "why" but I can tell you how to get round it. Use FTP to upload it to the server, in the appropriate media folder. Then attach wherever you need it as an existing media item rather than trying to upload it via Add media.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #3

I have uploaded the file here...

No you haven't (thank goodness!!) We have a VERY small file size limit here. It is only a forum, after all. :-))
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #4

  • itowler
  • itowler's Avatar Topic Author
  • Visitor
  • Visitor
Nigel,

OK I have uploaded the file via FTP. Now what. I am confused about the process... as using FTP it does not make an "M" entry....

Second issue, If I am using the Media Firewall....which DIR should I have uploaded it to... the "data" folder that has the media DIR in it or the regular Media folder...

Thanks for the help (in advance)

ian

Please Log in or Create an account to join the conversation.

Last edit: by itowler. Reason: add details...

Re: Issue with File upload... 9 years 1 day ago #5

Two options:
1 - after upload, you will see the item listed (administration --> Media), usually at the top of the list, with no thumbnail, title etc. Just edit it (add title, type etc) and save, It will get added to the DB (given an M code), and then you can simply use Manage links (same place) to connect it to the individual or whatever.

2 - Go the individual / event etc, use "add new media item" in the normal way, but then use "File name on server". The camera icon beside that will list the unlinked item for you.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #6

Getting back to why you had the problme. It will be because the file size limit is not the only factor to be considered. This is from another site:
Things to check

If you are webhosted, you will need to consult with your webhost regarding the following settings. You can review (although not change) those settings on your phpinfo page.

    max_input_time
    60 seconds is the default time limit for uploading files.
    This time limit includes the time it takes for the files to upload, so if you exceed this limit, the file will not even parse, and the browser will not get a response. You can workaround this by trying to upload smaller or fewer files, or you can try uploading over broadband. The best solution, of course, is to increase the time limit to something more in line with your needs.
    upload_max_filesize
    2MB is the default limit for individual files.
    post_max_size
    8MB is the default limit for post requests.
    memory_limit
    8MB is the default size. Read up Memory usage during resizing for instructions how to change this setting and circumvent the error messages related to the memory limit being reached.
    LimitRequestBody
    512KB default limit. (mainly an issue on Redhat/Apache systems. Found in /etc/http/conf.d)
    In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Coppermine may warn you if a file exceeds upload_max_filesize, but it cannot warn you if the total size of all the files exceeds the post limit or the memory limit.
    file_uploads
    This determines whether or not PHP will allow file uploads. It must be set to "On".
    upload_tmp_dir
    This specifies the temporary directory where PHP stores uploaded files.
    The most common issue caused by this setting is an open_basedir warning. In this situation, your server administrator has restricted the files that PHP can work with to a certain directory. If he does not create and specify a temporary directory within the open_basedir restriction, PHP will attempt to use the OS temporary directory, and it will be rebuffed by the open_basedir restriction.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #7

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
BTW, this is the only way to 'get around' your PHP setting which probably has a MAX upload of 4-8mb (the usual defaults). You can change this, but keeping it will help keep your users from uploading ridiculously large image files.

Also, consider whether you really need to burden your users with this huge download. It will consume tons of bandwidth at both your end and theirs. Do they really need this big file?
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Please Log in or Create an account to join the conversation.

Last edit: by ToyGuy.

Re: Issue with File upload... 9 years 1 day ago #8

  • itowler
  • itowler's Avatar Topic Author
  • Visitor
  • Visitor
Thanks toy guy, but the Max php upload is already set at 12mb not 4mb.

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Re: Issue with File upload... 9 years 1 day ago #9

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
There are two settings. Are you sure that both are greater than your PDF file size? But the second caution is more appropriate.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #10

  • itowler
  • itowler's Avatar Topic Author
  • Visitor
  • Visitor
Tried moving it via the admin.... and I get this...


Move to protected

ERROR 2: rename(media/docs/Arbuckle-Family-Records-1299497-1.pdf,data/media/docs/Arbuckle-Family-Records-1299497-1.pdf): Permission denied
0 Error occurred on in function rename
1 called from line 98 of file admin_media.php in function move_file
2 called from line 136 of file admin_media.php in function move_files
3 called from line 556 of file admin_media.php
Media file could not be moved. [media/docs/Arbuckle-Family-Records-1299497-1.pdf]

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #11

That simply means what it says - you have a permissions problem. But have you done everything else first (attached it, etc?). Don't move it until everything else is tidy.

Have you created a thumbnail as well?
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #12

  • itowler
  • itowler's Avatar Topic Author
  • Visitor
  • Visitor
OK,

Thanks for working with me on this...

It turns Out was I was moving to fast... needed to attach it etc...

Its a pdf so no thumbnail needed....just uses the stock pdf sign...

Thanks for the help... all the help

ian

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #13

Its a pdf so no thumbnail needed....just uses the stock pdf sign...

True, but it looks SO much nicer if it has a proper one. Take a copy of the front page, reduce it down to about 100px wide, save it as a .png file, then upload it to the thumbs directory (matching one to the main image, with same file name other than the suffix).
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

Re: Issue with File upload... 9 years 1 day ago #14

One last thing - even as a pdf that is a huge file to expect anyone to open. It is possible to optimise PDFs to far smaller sizes, often as much as 25% of the original without any discernible loss in quality. I do it regularly, so am happy to do it for you if you wish. Just email it to me, or let me download it from your site.
Nigel

www.our-families.info

Hosted at:
Follow me at:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum