I need to set a default image for my new app, so I was thinking about to use the app setting feature.
So I added a new content type of file type, but trying to upload a 20,3 KB file from adam it gives me the following error
The upload failed. The most likely cause is that the file you were trying to upload is bigger than the maximum upload size.
Using the image manager I'm able to upload my image and work with it.
It is an adam issue?
Thanks
most likely it's a forbidden file extension. Check fiddler / network-trafic to see what the real error is.
Related
I am working for a client and cannot seem to find the solution to this issue. When changing the file path for the root directory of the WP File Manager we can "lockdown" and specify that we want the /home/site_name/files folder for the users to see when logged in. The default file path is /home/site_name/ and I can view the PDF's in the files folder by navigating and opening them up.
But once I specify that I want only the contents in the /home/site_name/file to be viewed I can no longer open the PDF's, it will give me a 404 this page cannot be found. If I take this URL and add in the /files/file_name then it loads... there is some disconnect between the link and the file path and I cannot figure it out.
Let me know if anyone has seen this before while using Wordpress File Manager!
Thanks!!
Update: After contacting the developers of the plugin there was a known issue with it, now with the new version the bug is fixed
uploading images from desktop is fine but the problem is when i need to upload image from
mobile browser give me that error
the file 14343254.jpg could not be saved . an unknown error has occurred
the file in the Photo field was unable to be uploaded
photo field is required
I suggest you to use the devel module for that and in hook_file_presave($file) you should use dpm($file) to test if you get the file object. Try it like this:
function MYMODULE_file_presave($file){
dpm($file);
}
If file_presave doesn't work try the hook_file_insert($file).
Both will run if you press the upload button next to the file field or just hit the save button on node edit/add page and will output the file you uploaded to the screen as an object. If you don't have the devel module get it from here: http://drupal.org/project/devel or if you have drush drush dl devel. Try to check the server error log or the recent messages in drupal at Reports. You may have a duplicate entry for the file uri in the database. Check if you modify the uploaded files in one of your custom modules. I hope it helps you a bit.
i finally solved my problem after 1 week of searching
The problem is i am using aws ec2 server with 8GB volume and its 70% filled so images from mobile camera is large its generate unknown error so when i increase my volume to 50GB the problem is solved
I've got a very strange problem using drupal 7. I've got a wbesite running and using views and content types I have been able to build a lot of functionality. Now the following occurs:
When I add a new field to a content type (new or existing) of the the type file or image, I have this field in the form but when I try to upload a file or image using this form it gives an error "The file could not be uploaded" or the full error (from the recent log messages): "The upload directory public:// for the file field field_katapult_voorpagina could not be created or is not accessible. A newly uploaded file could not be saved in this directory as a consequence, and the upload was canceled."
Strangely, when I upload a file or image using an older existing field (pointing to the same directory: public://) it does not give an error and the files upload without a problem. So this makes me think that the server settings are actually set properly.
Anybody who can help me with this problem?
If not, can anybody point me in the right direction as to where I can find the files that handle the upload process in drupal 7?
Many thanks in advance!
You need to check a couple of things :
where is your public files folder, and if that is writable by the webserver ( in /admin/config/media/file-system )
where does your working field send files (it might be a different directory), and if it is, use that for the new fields as well.
Check you file destination directory setting of new image field. Do not include preceding or trailing slashes. This field supports tokens.
You can also check max, min resolutions, file upload limit, image style (if it is new image style other than thumbnail/ or existing) & number of values ( if it set to 1 you can't upload 2 or more). Finally you have to set it public files type.
I think you should check the files folder permission.
when I am uploading an image into serverside, and saved in a specific folder. Then on the next page I have to show that uploaded image. But I cant show it using the html img tag . what is wrong with this?.Can any one help me to solve this problem?
You likely need to make sure that the folder that you are uploading the images is accessible through the web server your are using, this would mean both that it's location is mapped to something on the web server and also that the web server has permission to read the image files after they have been created.
I would start by looking to make sure that the files are actually showing up in the folder that you expect them to be in, and that they aren't being cleared out by something.
Second, check if you manually place an image in that folder if you can navigate to the url of the image. If you can't it likely isn't mapped or there is a permissions issue.
You can test to see if the URLs of the images are working. Instead of just checking it through an img tag, navigate to the URL directly and see if you get some kind of an error, this might help you troubleshoot the issue.
I'm working on an image gallery application. Very frequently I'm getting Sandbox violation Error like Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.. Some times its raising by cleaning the project. Every time I'm using my application's backup and updating and then the error is raising. Though I'm accessing local image files, getting error. I'm using try-catch to catch the location but no use. How to get rid of this problem. Any help is appreciated.
If u Clean the project It Will remove all your
assets files in the bin-debug folder and it will be
recreated during the Build.Some times the build wont
creates the file properly i think that time you are
getting the error.
At most avoid cleaning.It may also happens by the
out dated flash player version.
It may also happens by the following ways,
incorrect path to the upload file script - check relative and absolute paths
a incorrect location for the files to be stored on the server specified inside server-side upload script - check path is correct and permissions are correct
file is too large so server rejects it - check max file size
there is no space on the server to save the file - check server hard drive space
your actionscript handler is going out of scope because it's declared locally,
etc - create a strong event listener or declare the file reference on the class
Check one of the option and Comment is must.
About loading local images. You should check and fix Flash Player trust file for your SWF as described here. Flash Builder done it automatically but who knows…
About problem with loading images in web it can be problem related to loading images from other domain which hasn't proper crossdomain.xml file. If so you should use some kind of proxy on your server.
If you're loading files from your own domain maybe this deployment checklist can help you. Also you can use some debugging proxy like Charles to see the real queries and responses.