By dom_b on
I know this has been covered before but I cannot find a solution...
Does anybody know of a module with a built-in upload module that uses FTP?
I need to be able to create a story and upload an attachment but my host as limited PHP uploads to 12MB and will not let me increase it. I can upload files via FTP no problem but would like to be able to create a story and upload simultaneously, that way when i delete the story I can delete the attachments as well.
Any help would be appreciated!
Thanks
Comments
=-=
you can try to use a custom php.ini file in your root and up the post_max and max_file_size
you can investigate the swfupload.module as well which uses flash to get large uploads to a server.
i have tried the php.ini file
i have tried the php.ini file but it seems to have no effect. i think they use a global limit for everybody and they really dont want to increase it.
=-=
There is nothing I am aware of that works like FTP. The closest thing I found was the swfupload.module
thanks for the reply. i shall
thanks for the reply. i shall take a look at it but I'm pretty sure that is still limited by my hosts. I just need a way around the php upload limit.
Maybe my php file is wrong...
All i did was create a php.ini file with the php_max_upload line in it and put it in the root of my site. Should it contain more info than this? Do you have a sample of what it should look like?
=-=
uploads through flash -may- bypass php settings, uploads as large as 2GB according to the project page = http://drupal.org/project/swfupload
you are using the wrong syntax in php.ini
use:
max_file_size = xM (where x is some number)
post_max_size = xM (where x is some number larger than max_file_size)
sorry those are the lines i
sorry those are the lines i put in the file. there does not need to be any header or anything though? all i do is create a text file called php.ini and add those two lines in. sorry, i am new to php etc!
=-=
that is correct. only those two lines in a text file named php.ini
If your drupal is installed in your root and you added php.ini to your root then you are correct in the assumption that your host isn't allowing overriding of php settings.
thats what i did. i have
thats what i did. i have spoken to their support team and they said thats the limit and thats final. im giving swfupload a go but it appears to be greyed out when trying to create a story and upload something?
=-=
doesn't sound like it's installed correctly. I'm not in a position right now to install it and figure out where you may have gone wrong.
Read the install.txt readme.txt and documentation provided in the links on the project page if you've not already.
Specific problems with swfupload.module should be directed to a new thread of the issue queue of the module.
i did manage to set up
i did manage to set up swf_upload but it is still held back by the PHP upload limit. Is there any other way around this?
FileField Sources module
In case anyone stumbles on this old thread as I did, here is a module that addresses the original poster's need:
http://drupal.org/project/filefield_sources
It'll allow you to upload a file to a specific directory via FTP, and then provides an option for the filefield cck widget which allows you to select files from that directory out of a dropdown. The file is then attached/managed as it would normally be w/ filefield.