Uploading files via web page
Hi,
I want to use a file form field to upload files to my Web server for manipulation. But I am at a loss as to how to start. Can anyone point me to examples codes, class or anything that I can use as a staring point? Thanks.
http://jakarta.apache.org/commons/fileupload
Similar Messages
-
Down-/Upload files via Web Services using a NON-SAP system!?
Hello,
is it possible to down-/upload files via web services using a NON-SAP system!?
Regards,
JensHi Jens,
I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
Hope this helps.
Regards,
Prasanna -
I am unable to upload files via web browser
Good morning
I have just upgraded to Mavericks (10.9.5), and I am running into a weird issue. I am unable to upload any files via the web browser. If I go to a website, and select an Upload File option, I am taken to Finder, where I am able to select the file, and press attach. The issue comes when I press upload on the website. It always either times out, or gives me an error that I was disconnected from the server. This happens on Safari, Firefox, and Chrome. I'm not sure what to do... I've repaired disk permissions and tried a lot of different security settings, but I am stumped.
Thank youLaunch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
The title of the Console window should be All Messages. If it isn't, select
SYSTEM LOG QUERIES ▹ All Messages
from the log list on the left. If you don't see that list, select
View ▹ Show Log List
from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
Please don't indiscriminately dump thousands of lines from the log into this discussion.
Please don't post screenshots of log messages—post the text.
Some private information, such as your name, may appear in the log. Anonymize before posting. -
If anyone can help me with this I would be seriously grateful.
When exporting mutliple files to web pages Aperture keeping losing files, so for instance, if I choose to export 600 images to a new web page, it might make 524 pages but not the full 600. I've tried resetting Aperture and its persmission and am using the latest version of 3.
I have 3600 images which I need to upload as sublfolders, each with their own URL and at the moment Aperture is dropping of anything from 1 to 90 images.
This is critical as people need to see each and every on of these images online. So if a file has 600 photos in it, Aperture should make a URL with 600 full image pages. And this is what it's not doing. On small files, say 30 or so it seems to work well, it's when it gets to more than that the problem starts.
I've used Aperture in the past under previous versions and not had this problem.
Any help would be great.
Thanks.
Bob.Hi Jack,
Thanks for responding (as it seems as though no one else has been able to provide any insight as of yet)! Not sure if you saw my recent post, but the version of Aperture on the 2008 MacBook has been upgraded to 3.1.2 (not sure how; I bought it in 2009, but only have OS X 10.5.8... which apparently can't house 3.1.2 of Aperture, but hey, like many other anomalies i'm encountering, I'm no longer surprised!). I am unable to upgrade it any further, as it warns me that my OS X does not fit the requirements. I exported the projects as libraries; however, like I posted before, apparently these are from too old of a version for the new Aperture (3.3.1) to handle and import.
It's getting to the point where I'd almost pay to upgrade the OS X on my previous MacBook (10.5.8) to something newer in order to THEN update Aperture to a newer version; however, my previous MacBook simply cannot handle this (the specs are awful -- hence my decision to save up and upgrade to the newest MBP with Retina).
I've spent hours upon hours transferring files, libraries as projects, previews, versions, even masters (though, apparently some of them aren't accessible?) with no luck. I've rebuilt the library and reprocessed everything. And this is all after having to return one MBP already since Aperture 3.3.1 is glitch-y as it is, and froze everything for having a "managed library". So, now that I know that I have to deal with a referenced library in Aperture... I just need to actually transfer my previous library to my new one (hopefully WITH adjustments since these are years worth of photos and work).
Again, any help is appreciated. I've lost enough sleep, time, and vision health over this at this point.
Also, I know Migration Assistant is an option, I was told that it wouldn't work properly anyway because of the different operating systems, and the potential for problems. -
Content.css file in Web page composer
Below are the styles I am using in a JSP file for Web page composer layout. Not sure where to add the CSS file.
Is it etc/wpceditor/css/runtime?
How do I include it in my jsp? and Do I hve to restart portal after I upload the css file?
table.wpc_3c_outertable
tr.wpc_3c_outertable_row
tr.wpc_hidden_row
td.wpc_sdn_20_46_34_col1
td.wpc_sdn_20_46_34_col2
td.wpc_sdn_20_46_34_col11
td.wpc_sdn_20_46_34_col12
tr.wpc_sdn_20_46_34_col1_row
td.wpc_sdn_20_46_34_col21
tr.wpc_sdn_20_46_34_col2_row
table.wpc_3c_innertable
table.wpc_3c_innertable2
td.wpc_mainarticle1, td.wpc_footer
table.wpc_3c_outertable
table.wpc_3c_innertable
table.wpc_3c_innertable2
td { background-color: #FF9933; border: 1px solid #C0C0C0; }
=====================
will my layout work. If I add the following code to the content.css file?
content.css
table.wpc_3c_outertable, table.wpc_3c_innertable, table.wpc_3c_innertable2
tr.wpc_3c_outertable_row, tr.wpc_sdn_20_46_34_col1_row, tr.wpc_sdn_20_46_34_col2_row { vertical-align: top; }
td.wpc_sdn_20_46_34_col1
td.wpc_sdn_20_46_34_col2
td.wpc_sdn_20_46_34_col11
td.wpc_sdn_20_46_34_col12
tr.wpc_hidden_row
td.wpc_mainarticle1, td.wpc_footerVishal -
First... we are all new to WPC!
Second, no I don't think you need to create a new container. I think that you just need to add the swf type as an allowed type for the container.
So...
Figure out which container you are trying to add the flash file to (as you mentioned, A1, A2, etc).
Navigate to:
Sys Admin --> Sys Config --> Knowledge Mgt --> Content Mgt --> WPC --> Containers.
Edit the container you want to use.
There will be a box named Allowed Mime Types.
In here, select the "swf" mime type (make sure the check box is checked). Then Save.
At my company, we had the WPC ramp up from SP12, and are now on SP13.
I'm not sure what you get if the first time you had WPC is SP13, but for us I see two default A1 (and A2...B1..C4...etc) containers -- one that has "default" in the name and one that has "def" in the name. From what I see, SP13 WPC uses the one with "def" in the name, not "default". So, make sure you modify the one with "def" in the name.
After you make this change, you should see "swf" in the list inside the container when you are editing a page.
Is this clearer? I wish I could attach a screenshot. -
Is it possible to have an uploaded file (via a form or webapp edit form on the site front-end) to be stored/created as a Media Download item (Literature Item)? Or alternatively, is it possible to secure a file that has been uploaded on the front-end (by 'secure' I mean cannot be access outside of a secure zone)?
My aim is to have customers upload files into their secure zone and maintain that security on the uploaded file so other cannot access them. I can't see that this will be possible but hopefully someone might have some creative ideas to get around it.Hi Adam,
This can be implemented via web apps, please go through the web app tutorials here to know more about them - User manual
You can set up a secure web app to take the submissions from the users and include file upload in that submission. Those submissions are visible to only the user who submits it, unless, you enable the option where every one can see/edit it.
Note: Via the web apps, the files that are uploaded, they go into a folder with a random name which is directly accessible on the internet, even though, on the site, through the web app items, only the logged in users can see it. By this I mean that anyone who has the direct link to the file will be able to access it and it can also be indexed by search engines. So, when it comes to using the work around of web apps to implement this function on your site, make sure to take measure to block Google bots from indexing the files.
Check this article to know more on how the GoogleBot works - Googlebot - Webmaster Tools Help
Regards,
Abhishek Maurya -
Upload file in Web Dynpro and add to Workflow container as SOFM object
Hi!
I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
When uploading files in Web Dynpro it is as an XSTRING. I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
1) Convert from XSTRING to STRING using codepage 4110.
Then it is split into a string table of 255 chars
2) Convert from XSTRING to STRING using codepage 4102
Then it is split into a string table of 255 chars
3) Convert from XSTRING to BINARY format
I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
and then swf_create_object lr_sofm 'SOFM' ls_sofm_key.
before I call some macros to fill the container.
Anyone else who have tried to do this with success? I'm greatful for any help.
Regards, TineHi,
I had the same problem in the last days and finally I got a quite simple solution:
I had a look at the FM SWL_SOFM_CREATE_WITH_TABLE an noticed that it calls another FM (SO_DOCUMENT_INSERT_API1) which has a tables parameter for HEX data and is actually able to create a SOFM object from HEX data.
I simply copied SWL_SOFM_CREATE_WITH_TABLE as a customer FM and applied a few changes to make it accept HEX data:
First I added a new table parameter in the interface which gets the HEX data from the calling application (uploaded data using BIN format):
OBJECT_CONTENT_HEX LIKE SOLIX
Here is the code of the FM (I marked all additional and changed lines with a comment):
function z_test_sofm_create_with_table .
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(NOTE_TITLE) LIKE SODOCCHGI1-OBJ_DESCR OPTIONAL
*" VALUE(DOCUMENT_TYPE) LIKE SOODK-OBJTP DEFAULT SPACE
*" EXPORTING
*" VALUE(SOFM_KEY) LIKE SWOTOBJID-OBJKEY
*" TABLES
*" NOTE_TEXT STRUCTURE SOLISTI1 OPTIONAL
*" OBJECT_CONTENT_HEX STRUCTURE SOLIX OPTIONAL
*" EXCEPTIONS
*" ERROR_SOFM_CREATION
data: region like sofd-folrg.
data: folder_id like soodk.
data: l_folder_id like soobjinfi1-object_id.
data: document_data like sodocchgi1.
data: document_info like sofolenti1.
data: object_content like solisti1 occurs 0 with header line.
data: lines like sy-tabix.
*- set default
if document_type is initial.
document_type = 'RAW'.
endif.
*- create office object
*-- get dark folder
region = 'B'.
call function 'SO_FOLDER_ROOT_ID_GET'
exporting
region = region
importing
folder_id = folder_id
exceptions
communication_failure = 1
owner_not_exist = 2
system_failure = 3
x_error = 4
others = 5.
if sy-subrc ne 0.
message e696(wl) "<== Add message class
raising error_sofm_creation.
endif.
*- get description
if note_title is initial.
read table note_text index 1.
note_title = note_text.
endif.
*-- create office document
document_data-obj_name = 'ATTACHMENT'.
document_data-obj_descr = note_title.
document_data-obj_langu = sy-langu.
object_content[] = note_text[].
describe table object_content lines lines.
document_data-doc_size = ( lines - 1 ) * 255 + strlen( object_content ).
if object_content[] is initial. "<== insert
describe table object_content_hex lines lines. "<== insert
document_data-doc_size = lines * 255. "<== insert
endif. "<== insert
l_folder_id = folder_id.
call function 'SO_DOCUMENT_INSERT_API1'
exporting
folder_id = l_folder_id
document_data = document_data
document_type = document_type
importing
document_info = document_info
tables
object_content = object_content
contents_hex = object_content_hex " <== Insert line
exceptions
folder_not_exist = 1
document_type_not_exist = 2
operation_no_authorization = 3
parameter_error = 4
x_error = 5
enqueue_error = 6
others = 7.
if sy-subrc ne 0.
message e696(wl) "<== Add message class
raising error_sofm_creation.
endif.
*- set export parameter
sofm_key = document_info-doc_id.
endfunction.
The returned SOFM key I added to a container element. The element refers to event parameter of type OBJ_RECORD in my ABAP OO Class
Using this function I was able to raise an event by using Method cl_swf_evt_event=>raise
that invoked a workitem containing an Excel-File i had uploaded as binary file and passed to the FM z_test_sofm_create_with_table as document type 'XLS'.
In the woritem preview when clicking on the attachment the file was opened directly in Excel.
Actually the new lines for calculation the file size is not yet quite correct. At first glance it does not seem to cause any trouble, but I will stll check that. In FM SO_OBJECT_INSERT the size is again checked and calculated if initial, so leaving size initial might also be an option.
I hope this helps anyone having a similar issue.
Greetings,
Michael Gulitz -
Unable to upload files via Wi-Fi.
My phone C3-00 is running on latest update v08.71. I'm unable to upload files on wi-fi. When I start any service like Facebook on opera mini or any browser (I'm also unable to use Mail & Communities via wi-fi) and try to upload file (pic. of max. size 500KB) it shows uploading two times then shows connection failed. I tried it several times but everytime it shows connection failed. But I can easily upload files via GPRS. The Mail & Communities app also runs fine on GPRS but not works on Wi-Fi. Please solve my problem.
Read my previous post /t5/Phone-Applications/Nokia-apps-on-Wi-Fi/m-p/1305667#M25965
-
How to download a file via web service in Windows Phone 8.1?
My project just got 2 part.
1.Pivot app
2.Webclient server (provide data for pivot app the view the data)
My concert that how do i do a download button to download a file via web services in to isolated storage.
urgent!something like this:
public async System.Threading.Tasks.Task DownloadFile()
using (var client = new Windows.Web.Http.HttpClient())
var stream = await client.GetInputStreamAsync(new System.Uri("http://urltomyfile"));
var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myfile.txt", CreationCollisionOption.GenerateUniqueName);
using (var fileStream = await file.OpenAsync(FileAccessMode.ReadWrite))
IBuffer buffer = new Windows.Storage.Streams.Buffer(1024);
while ((buffer = await stream.ReadAsync(buffer, buffer.Capacity, InputStreamOptions.None)).Length > 0)
await fileStream.WriteAsync(buffer);
await fileStream.FlushAsync();
how is your webservices offering the file?
Microsoft Certified Solutions Developer - Windows Store Apps Using C# -
Safari 5.1.2 always opens pdf files on web pages as a single frame and thus it will not print properly. How can I get Safari to open all pdfs with Adobe Reader 10.1.1?
Carolyn,
Thanks for sending your suggestion on how to solve my problem. Unfortunately, it did not work for me. I trashed the file, quit and relaunched Safari, but the problem remained the same. Although it did not work, I do appreciate that you took the time to try to help me.
Thanks. -
Problem on upload file via ftp..
Hi afternnon,
Can have people tell me.....what is "Can't open data connection" on my upload file via ftp ????how to solve it??
regards,
mikenbelford wrote:
I cant find any way to upload the CSR either/ I dont think it exists yet. Can someone please let us know how far away it is. Same applies to the provisioning profile. I cant see any evidence of this yet either.
I am presuming that without these key pieces of the puzzle one cannot deploy to the iPhone. Can someone from Apple confirm (or correct me)
I've emailed Apple asking for clarification but I haven't heard back yet. I imagine we'll all learn what's going on at about the same time. And yes, until you get a certificate you cannot upload your apps to the iPhone (within the SDK rules).
Randy -
I need an addon to extract music files from web pages like myspace.
I'm running Firefox 23 on Ubuntu 12.04. I would like to be able to extract/download music files from web pages like MySpace. I searched through the addons but didn't find any. Is there and addon to download music from MySpace?
There's a Search box at addons.mozilla.org which you can use. <br />
[https://addons.mozilla.org/en-US/firefox/search/?q=MySpace+downloads&appver=23.0&platform=windows MySpace downloads addons search]
The first one listed there says it works with MySpace. -
Embedding .swf file into web pages
What's the best way of embedding a flash file into web pages?
After Microsoft introduce something about the active object (need
to click on the Flash file first on IE to activate it) it seems
like the best way is to use 'FlashObject'. Is there any other
better way? Thanks a lot.SWFObject, which
used to be FlashObject. -
Embed 3D Max (.3ds) file in web page
Can I embed 3D Max (.3ds) file in web page so that user can view the file inside IE?
Thanks for any comments.hi jonathan,
I'm not into coding - I'm on the graphic side of the fence
But in WiFu you can add a lot of extra's trough Java and Javascript.
I don't know if that is what you are looking for ?
If you like you can send me your .3DS model and I will generate a html page that contains your 3D model - you can send it to [email protected]
K. -
NW Business Client and accessing SAP services via web pages
Hi all,
We currently use Business Connector to access our SAP environment via web pages. We looked at NW eSOA but decided against implementing it. Does Business Client offer anything that helps access SAP apps and data from a custom web site better the Business Connector?
Thanks in advance,
TomTom
I am assuming you are using SAP Business Connector in your landscape to connect to back end SAP systems from your web applications. Your question now is that if business client can let you access SAP data for your web pages instead of the business connector. Point to not here is that Business client, as the name implies, is just a client with single point of access for SAP screens. That means, you can access traditional SAP transactions, WebDynpro screens, BSP pages, Portal screens etc in one single client. In very raw terms, Business client acts (or replaces) as your browser. It is not going to provide you any out of the box integration with backend system rather just act as a window. You options at this point are
1) Use your existing webpages but instead of getting data from the backend system through business connector, get the data using webservices.
2) Use PI as middleware tool and get the data from backend SAP system
3) Stay were you are but deal with high cost of ownership.
Thanks
KK
Maybe you are looking for
-
Hi Gurus i have a problem, in MM01/MM02(Basic data1) there is field called Prod.hierarchy(dataelement is prodh_d), for this data element how to create and change Field Exits and how to assign to MM01/MM02 Tcode. the code part i have to write is 1. To
-
I drop the Lumia 900 in water i was in a rush it was stupid to leave it by the shower. can anything be done to fix it by nokia the screen works but the touch function does not. an the input jack does not work as well. Ill pay for a new replacement if
-
Why does Flash Player try to load every time I open a link
Every time I open a new link Flashplayer fails to load, I don't know why it's loading anyway. Maybe for the ads About.com puts on top that I don't want and can't get rid of. I get an error screen and have to close Flashplayer. So who cares except it'
-
How to modify waveset.roles
Hi I'm trying to modify waveset.roles by removing the role that already exists, and replacing it with the name of another role. I checkout a User view, and then modify it like this: <removeAll> <ref>userView.waveset.roles</ref> <s>old_role_name</s> <
-
I just find out that the HD recovery partition went missing in my MBP Early 2011 ML 10.8.5. I don't know when it exactly happened, but my guess is that it was after removing a Bootcamp partition. In any case, I have Time Capsule backups since both th