upload

Image uploader + crop

旧城冷巷雨未停 提交于 2019-12-12 02:17:07
问题 I'm running a web application built on Seam. I would like to have an image upload + crop component.Preferably on client side, so the image uploaded to the server would be the result of the crop. I read this can be made with Flash 10. I was thinking flex is also a possibility. Does anyone has good hints to give me, what component to choose or what is the best way to connect the backing bean I have with the flash/flex? Thank you! 回答1: A search for Flash uploaders shows many: From the

'Object reference not set to instance of an object' error when trying to upload image to database

我是研究僧i 提交于 2019-12-12 02:17:01
问题 I am trying to upload an image to a SQL database using C#. I found some code from another site that worked perfectly in a test project. But when I copied and pasted the code and put it into my actual project, it gives me an 'Object reference not set to an instance of an object' error. This makes no sense to me because it worked just fine in the test project. The code is as follows... protected void btnAddDevice_Click(object sender, EventArgs e) { byte[] myimage = new byte[FileUpload1

Can't upload files bigger than 8MB

本秂侑毒 提交于 2019-12-12 02:06:49
问题 I'm trying to make a file upload script and I've been struggling with this problem for a while. I've read and tried all the SO answers related to this, but to no avail. Here is what I tried in php. ini: file_uploads = On upload_max_filesize = 100M post_max_size = 100M memory_limit = 100M In Apache I have: <Directory /var/www/uploads> php_value upload_max_filesize 10G php_value post_max_size 10G </Directory> I might have tried something else that doesn't come to mind right now. I also want to

php multiple file upload not working at server

為{幸葍}努か 提交于 2019-12-12 02:05:39
问题 I've shared hosting and there is a script to upload multiple files at once at server, It is working properly in localhost but it seems not working at the remote server . However while there is less amount of files , it works. I've set below php.ini variables as, php.ini file on server upload_max_filesize = 100M post_max_size = 100M max_file_uploads = 70 post_max_size = 100M I've also set below variables at upload back-end script, ini_set('post_max_size', '100M'); ini_set('upload_max_filesize'

PHP Rotate Image from request file

北城余情 提交于 2019-12-12 01:58:09
问题 I am now using the following method to store an image to server from input file type $image = $request->file('file'); $filename = $item->itemId . '.png'; Storage::disk('s3')->put('/'.$filename, file_get_contents($image), 'public'); and I found method to rotate the image with PHP $filename = 'test.jpg'; $degrees = 180; header('Content-type: image/jpeg'); $source = imagecreatefromjpeg($filename); $rotate = imagerotate($source, $degrees, 0); imagejpeg($rotate); but I dont know how implement the

How can I upload images in a normal insert form (MySql)? after upload the image should have three versions of different sizes and different names

血红的双手。 提交于 2019-12-12 01:56:51
问题 Now I have an insert form just like that: $sql="INSERT INTO products (pname, pcat, pimg1, pimg2, pimg3, pnotes, pclient, pclientaddress, pclientphone) VALUES ('$_POST[pname]','$_POST[pcat]','$_POST[pimg1]','$_POST[pimg2]','$_POST[pimg3]','$_POST[pnotes]','$_POST[pclient]','$_POST[pclientaddress]','$_POST[pclientphone]')"; Instead of entering the URL value of three different images, is there a way I can upload one image and have there different sizes of it, the original one to be named 1001a

Image file successfully uploaded using a Google App Engine application does not exist in bucket

孤街浪徒 提交于 2019-12-12 01:54:05
问题 I have the following code: I create the application specific upload URL, using the method CloudStorageTools::createUploadUrl() as follows: require_once 'google/appengine/api/cloud_storage /CloudStorageTools.php'; use google\appengine\api\cloud_storage\CloudStorageTools; $options = [ 'gs_bucket_name' => 'myuserpics' ]; $upload_url = CloudStorageTools::createUploadUrl('/upload_handler.php', $options); I Use the above URL as the action for the form I use to accept uploads, as follows: <form

C# How to solve Web Client Upload file “The remote server returned an error: (405) Method Not Allowed.”?

痞子三分冷 提交于 2019-12-12 01:52:43
问题 Hello I want to upload a html file that is in my local to a remote folder in a server that contains a data dir with geoserver elements, and here is my code: public void CopyWS(string SourcePath, string DestinationPath) { try { string SourcePath = Path.GetFullPath("Result.html"); string DestinationPath = @"http://xx.xx.xxx.:8080/geoserver/rest/workspaces/"; string authInfo = "admin:geoserver"; WebClient client = new WebClient(); client.Headers["Authorization"] = "Basic " + Convert

Upload big files in SPA (angular + express)

三世轮回 提交于 2019-12-12 01:47:58
问题 Normal to upload file I do <form method='post' enctype='multipart/form-data'> <p><input type='text', name='name'/></p> <p><input type='file', name='image'/></p> <p><input type='submit', value='Wyślij'/></p> </form> What if I want send this form without page reload? I can use "new FileReader()" and bind base64 to $scope but with big files it doesn't work well. Can I upload my form without page reload in similar way like above? 回答1: I think you should looked at the directive which has been

upload image and set it as background Android

让人想犯罪 __ 提交于 2019-12-12 01:37:20
问题 I am trying to upload an image and set it as a background but I'm having no luck. So the uploading is working fine but when I try to set the image as a background It does not work. Here is the code for upload image: Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intent, 0); then upload: protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub super