upload

XMPP Multi user chat setting avatar image for the group chat

不打扰是莪最后的温柔 提交于 2019-12-05 08:53:36
I am developing an iOS application with chat features. I am using XMPP for that application. In XMPP Multi user chat, whether any feature is available to set avatar image or group image for the conference room like the one we do in whatsapp? I have checked XEP-0045 extension but it wasn't helpful, So I checked with Psi by creating conference rooms, I came to understand that the user has vcard so he can store his avatar image but the XMPP doesn't provide any vcards for the groups we create. Now I possibly understand why its not available. Yet I can't convince how whatsapp is able to achieve. I

$_FILES array and its silly structure [duplicate]

混江龙づ霸主 提交于 2019-12-05 08:43:09
Possible Duplicate: How do you loop through $_FILES array? For some reason arrays really get to me. I can get there in the end, but this $_FILES array seems to be backwards to me. I want to be able to loop through $_FILES like so: foreach($_FILES as $file) { echo $file['name'] . "<br>"; echo $file['type'] . "<br>"; echo $file['size'] . "<br>"; echo $file['error'] . "<br>"; } But obviously with the way its structured you cannot do that. So I have written the following: echo "<pre>"; $x=0; $file = array(); foreach($_FILES['attachment']['name'] as $data) { $file[$x]=array(); array_push($file[$x],

File Upload Error in MediaWiki 1.22.3 - Could not create directory “mwstore://local-backend/local-public/7/70”

和自甴很熟 提交于 2019-12-05 08:37:44
We recently upgraded our MediaWiki installation to 1.22.3 running on Ubuntu 12.04.2 LTS. Now when we try to upload files, we get the following error: Could not create directory "mwstore://local-backend/local-public/7/70" Finally found the solution in the MediaWiki documentation. The problem was the ownership of the images directory. Making the adjustments suggested in the documentation eliminated the problem. See the following for details: http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads Specifically, do this: sudo chown -R www-data:www-data images/ sudo chmod -R 755 images/ Your

Upload large file in background (service restarting when the app closed)

微笑、不失礼 提交于 2019-12-05 08:12:11
I would like to upload large files (~10 - 100Mb wifi or mobile network), but in background, because the user maybe will leave the app and later the system will close the app (if not enoguh memory) I created a service for this case but my problem is that when i killed the app the service restarting and the uploading start again. I found same problems without solution: keeping background service alive after user exit app My service is restarted each time the application is closed So it won't work, but what is the solution? How does the youtube app??? You should use a foreground service via the

How to show progress while upload file to Cloudinary in Android?

与世无争的帅哥 提交于 2019-12-05 08:11:15
问题 I implemented the uploading function the file to Cloudinary. Cloudinary cloudinary = new Cloudinary(Constants.CLOUDINARY_URL); try { FileInputStream is = new FileInputStream(new File(filePath)); Uploader uploader = cloudinary.uploader(); Map map = uploader.upload(is, new HashMap()); return map; } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } Now I would like to show the uploading percent in progress bar while upload. But I can't find

Multiple File Upload with jQuery [removing file then adding it again]

戏子无情 提交于 2019-12-05 08:08:22
问题 I know that this problem had been asked before but I'm having a problem with Multiple File Upload . I don't want to use a plugin for this. I want to upload multiple files, save it to database and store them to a folder. Before uploading the images, I want to display the names of all the images in list-style. I have a remove button that is being added dynamically when you select a file. $("#imagefile").on("change", function() { var filename = v.name; var newfilenameshufflen = $("#"

Video cannot be processed error notification while uploading a video [closed]

淺唱寂寞╮ 提交于 2019-12-05 08:01:09
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . when i try to upload a video of different formats(including .mp4 and .3gp files) to facebook from my android application, i get a notification in my

PHP - upload and overwrite a file (or upload and rename it)?

元气小坏坏 提交于 2019-12-05 07:48:20
问题 I have searched far and wide on this one, but haven't really found a solution. Got a client that wants music on their site (yea yea, I know..). The flash player grabs the single file called song.mp3 and plays it. Well, I am trying to get functionality as to be able to have the client upload their own new song if they ever want to change it. So basically, the script needs to allow them to upload the file, THEN overwrite the old file with the new one. Basically, making sure the filename of song

Using Apache commons FileUpload

拟墨画扇 提交于 2019-12-05 07:41:16
问题 This just won't work. The problem is that I do not know enough to even know what is supposed to happen. I can't debug this code. I'd like to store upload to temporary folder "temp" and then to move them to "applets". Please help? The servlet is obviously being accessed, but I can't find the uploaded files... Thanks in advance. Form (which is created using a scriptlet - I put this here if that could cause problems): <% out.write("<p>Upload a new game:</p>"); out.write("<form name=\"uploadForm\

PHP - Get a word count from an uploaded Microsoft Word document

最后都变了- 提交于 2019-12-05 06:40:32
问题 I am trying to grab a word count from an uploaded word doc (.doc, .docx, .rtf) but it always carries through the annoying Word formatting. Anybody tackled this issue before and know how to solve it? Thanks :) 回答1: You will need to: Distinguish the file type $file_name = $_FILES['image']['name']; $file_extn = end(explode(".", strtolower($_FILES['image']['name']))); if($file_extn == "doc" || $file_extn == "docx"){ docx2text(); }elseif($file_extn == "rtf"){ rtf2text(); } Convert the document to